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++;