From ea1cd81a13f571f1b76b83b301c1c1486eaf68df Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 21 Dec 2019 20:13:46 +1100 Subject: [PATCH] implemented signals for the export window's view/look changing These were implemented for the display combobox correctly but not for the view/look comboboxes. --- app/dialog/export/exportvideotab.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/dialog/export/exportvideotab.cpp b/app/dialog/export/exportvideotab.cpp index 32adfda83..52bf59372 100644 --- a/app/dialog/export/exportvideotab.cpp +++ b/app/dialog/export/exportvideotab.cpp @@ -59,6 +59,11 @@ void ExportVideoTab::show_image_sequence_section(bool visible) image_sequence_label_->setVisible(visible); } +const rational &ExportVideoTab::frame_rate() const +{ + return frame_rates_.at(frame_rate_combobox_->currentIndex()); +} + void ExportVideoTab::set_frame_rate(const rational &frame_rate) { frame_rate_combobox_->setCurrentIndex(frame_rates_.indexOf(frame_rate)); @@ -158,6 +163,7 @@ QWidget* ExportVideoTab::SetupColorSection() views_combobox_ = new QComboBox(); color_layout->addWidget(new QLabel(tr("View:")), row, 0); color_layout->addWidget(views_combobox_, row, 1); + connect(views_combobox_, SIGNAL(currentIndexChanged(int)), this, SLOT(ColorViewChanged())); row++; @@ -167,6 +173,7 @@ QWidget* ExportVideoTab::SetupColorSection() foreach (const QString& look, looks) { looks_combobox_->addItem(look, look); } + connect(looks_combobox_, SIGNAL(currentIndexChanged(int)), this, SLOT(ColorLookChanged())); color_layout->addWidget(new QLabel(tr("Look:")), row, 0); color_layout->addWidget(looks_combobox_, row, 1);