From 9f0f61d91467eb229c06c88d32dfd5693c250def Mon Sep 17 00:00:00 2001 From: Hussam Eddin Alhomsi Date: Thu, 21 Dec 2017 12:17:03 +0300 Subject: [PATCH] Use "Set value" as title for QInputDialog of some widgets. These widgets are the Fader, Knob and LcdSpinBox. --- src/gui/widgets/Fader.cpp | 4 ++-- src/gui/widgets/Knob.cpp | 4 ++-- src/gui/widgets/LcdSpinBox.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/widgets/Fader.cpp b/src/gui/widgets/Fader.cpp index 20a588220..f74c85686 100644 --- a/src/gui/widgets/Fader.cpp +++ b/src/gui/widgets/Fader.cpp @@ -218,7 +218,7 @@ void Fader::mouseDoubleClickEvent( QMouseEvent* mouseEvent ) // TODO: dbV handling if( m_displayConversion ) { - newValue = QInputDialog::getDouble( this, windowTitle(), + newValue = QInputDialog::getDouble( this, tr( "Set value" ), tr( "Please enter a new value between %1 and %2:" ). arg( model()->minValue() * 100 ). arg( model()->maxValue() * 100 ), @@ -228,7 +228,7 @@ void Fader::mouseDoubleClickEvent( QMouseEvent* mouseEvent ) } else { - newValue = QInputDialog::getDouble( this, windowTitle(), + newValue = QInputDialog::getDouble( this, tr( "Set value" ), tr( "Please enter a new value between %1 and %2:" ). arg( model()->minValue() ). arg( model()->maxValue() ), diff --git a/src/gui/widgets/Knob.cpp b/src/gui/widgets/Knob.cpp index 73ef42758..bccf3721d 100644 --- a/src/gui/widgets/Knob.cpp +++ b/src/gui/widgets/Knob.cpp @@ -771,7 +771,7 @@ void Knob::enterValue() ConfigManager::inst()->value( "app", "displaydbfs" ).toInt() ) { new_val = QInputDialog::getDouble( - this, windowTitle(), + this, tr( "Set value" ), tr( "Please enter a new value between " "-96.0 dBFS and 6.0 dBFS:" ), 20.0 * log10( model()->getRoundedValue() / 100.0 ), @@ -788,7 +788,7 @@ void Knob::enterValue() else { new_val = QInputDialog::getDouble( - this, windowTitle(), + this, tr( "Set value" ), tr( "Please enter a new value between " "%1 and %2:" ). arg( model()->minValue() ). diff --git a/src/gui/widgets/LcdSpinBox.cpp b/src/gui/widgets/LcdSpinBox.cpp index 90a58728c..70eb6cf65 100644 --- a/src/gui/widgets/LcdSpinBox.cpp +++ b/src/gui/widgets/LcdSpinBox.cpp @@ -172,7 +172,7 @@ void LcdSpinBox::enterValue() int new_val; new_val = QInputDialog::getInt( - this, windowTitle(), + this, tr( "Set value" ), tr( "Please enter a new value between %1 and %2:" ). arg( model()->minValue() ). arg( model()->maxValue() ),