mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(qt) set an initial value for QDoubleSpinBox in the prefs dialog
This commit is contained in:
@@ -140,6 +140,7 @@ PrefsDialog :: doubleSpinBoxNew( int key, double low, double high, double step,
|
||||
spin->setRange( low, high );
|
||||
spin->setSingleStep( step );
|
||||
spin->setDecimals( decimals );
|
||||
spin->setValue( myPrefs.getDouble( key ) );
|
||||
spin->setProperty( PREF_KEY, key );
|
||||
connect( spin, SIGNAL(valueChanged(double)), this, SLOT(doubleSpinBoxChanged(double)));
|
||||
myWidgets.insert( key, spin );
|
||||
|
||||
Reference in New Issue
Block a user