(qt) set an initial value for QDoubleSpinBox in the prefs dialog

This commit is contained in:
Daniel Lee
2010-08-22 16:45:29 +00:00
parent a42c86a701
commit 1fbdc6b7c5

View File

@@ -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 );