Fix PR comments
This commit is contained in:
+1
-1
@@ -383,7 +383,7 @@ void Core::DialogExportShow()
|
||||
}
|
||||
|
||||
#ifdef USE_OTIO
|
||||
void Core::DialogImportOTIOShow(QList<Sequence*> sequences) {
|
||||
void Core::DialogImportOTIOShow(const QList<Sequence*>& sequences) {
|
||||
Project* active_project = GetActiveProject();
|
||||
OTIOPropertiesDialog opd(sequences, active_project);
|
||||
opd.exec();
|
||||
|
||||
+1
-1
@@ -402,7 +402,7 @@ public slots:
|
||||
* @brief Show OTIO import dialog
|
||||
*/
|
||||
#ifdef USE_OTIO
|
||||
void DialogImportOTIOShow(QList<Sequence*> sequences);
|
||||
void DialogImportOTIOShow(const QList<Sequence*>& sequences);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,13 +27,14 @@
|
||||
|
||||
namespace olive {
|
||||
|
||||
OTIOPropertiesDialog::OTIOPropertiesDialog(QList<Sequence*> sequences, Project* active_project, QWidget* parent) :
|
||||
OTIOPropertiesDialog::OTIOPropertiesDialog(const QList<Sequence*>& sequences, Project* active_project, QWidget* parent)
|
||||
:
|
||||
QDialog(parent),
|
||||
sequences_(sequences)
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
|
||||
layout->addWidget(new QLabel("Change settings for each OTIO sequence to be loaded"));
|
||||
layout->addWidget(new QLabel(tr("Change settings for each OTIO sequence to be loaded")));
|
||||
|
||||
table_ = new QTreeWidget();
|
||||
table_->setColumnCount(2);
|
||||
|
||||
@@ -20,12 +20,12 @@ namespace olive {
|
||||
class OTIOPropertiesDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
OTIOPropertiesDialog(QList<Sequence*> sequences, Project* active_project, QWidget* parent = nullptr);
|
||||
OTIOPropertiesDialog(const QList<Sequence*>& sequences, Project* active_project, QWidget* parent = nullptr);
|
||||
|
||||
private:
|
||||
QTreeWidget* table_;
|
||||
|
||||
QList<Sequence*> sequences_;
|
||||
const QList<Sequence*> sequences_;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user