Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "Set value" as title for QInputDialog of some widgets. #4063

Merged
merged 1 commit into from
Mar 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gui/widgets/Fader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand All @@ -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() ),
Expand Down
4 changes: 2 additions & 2 deletions src/gui/widgets/Knob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
Expand All @@ -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() ).
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/LcdSpinBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ),
Expand Down