Merge pull request #4063 from Sawuare/Widgets
Use "Set value" as title for QInputDialog of some widgets.
This commit is contained in:
@@ -225,7 +225,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 ),
|
||||
@@ -235,7 +235,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() ),
|
||||
|
||||
@@ -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() ).
|
||||
|
||||
@@ -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() ),
|
||||
|
||||
Reference in New Issue
Block a user