Slider: add label substitution for certain values

Allows "Threads" option in advanced export setting to show "Auto" when set to 0
This commit is contained in:
itsmattkc
2022-02-01 15:36:26 -08:00
parent 60aa76794a
commit 217973e069
4 changed files with 20 additions and 2 deletions
@@ -48,6 +48,7 @@ ExportAdvancedVideoDialog::ExportAdvancedVideoDialog(const QList<QString> &pix_f
thread_slider_ = new IntegerSlider();
thread_slider_->SetMinimum(0);
thread_slider_->SetDefaultValue(0);
thread_slider_->InsertLabelSubstitution(0, tr("Auto"));
performance_layout->addWidget(thread_slider_, row, 1);
row++;
-1
View File
@@ -251,7 +251,6 @@ void ExportVideoTab::VideoCodecChanged()
} else {
pix_fmt_.clear();
}
qDebug() << "Set default pix fmt" << pix_fmt_;
}
void ExportVideoTab::SetTime(const rational &time)