From 1fbdc6b7c5cfe4c7a5f18e6bcba8fa159598dab2 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Sun, 22 Aug 2010 16:45:29 +0000 Subject: [PATCH] (qt) set an initial value for QDoubleSpinBox in the prefs dialog --- qt/prefs-dialog.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/prefs-dialog.cc b/qt/prefs-dialog.cc index 4e5287bab..54109b71f 100644 --- a/qt/prefs-dialog.cc +++ b/qt/prefs-dialog.cc @@ -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 ); -- 2.40.0