Fix PR comments

This commit is contained in:
Thomas Wilshaw
2022-01-05 16:27:41 +00:00
parent 90a0077c02
commit f784695133
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -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
View File
@@ -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:
/**