Mercurial > hg > sonic-visualiser
diff main/PreferencesDialog.cpp @ 114:a46d68ae3c3e sv1-1.0pre1
* Make getPropertyRangeAndValue return the default separately from the current
value. Previously some contexts were incorrectly treating the current value
as a default.
author | Chris Cannam |
---|---|
date | Fri, 02 Mar 2007 14:00:12 +0000 |
parents | f3516e520652 |
children | c9930ec7a3f9 |
line wrap: on
line diff
--- a/main/PreferencesDialog.cpp Fri Mar 02 13:01:41 2007 +0000 +++ b/main/PreferencesDialog.cpp Fri Mar 02 14:00:12 2007 +0000 @@ -49,10 +49,10 @@ // refer to it m_applyButton = new QPushButton(tr("Apply")); - int min, max, i; + int min, max, deflt, i; m_windowType = WindowType(prefs->getPropertyRangeAndValue - ("Window Type", &min, &max)); + ("Window Type", &min, &max, &deflt)); m_windowTypeSelector = new WindowTypeSelector(m_windowType); connect(m_windowTypeSelector, SIGNAL(windowTypeChanged(WindowType)), @@ -67,7 +67,8 @@ this, SLOT(smoothSpectrogramChanged(int))); QComboBox *propertyLayout = new QComboBox; - int pl = prefs->getPropertyRangeAndValue("Property Box Layout", &min, &max); + int pl = prefs->getPropertyRangeAndValue("Property Box Layout", &min, &max, + &deflt); m_propertyLayout = pl; for (i = min; i <= max; ++i) { @@ -94,7 +95,8 @@ QComboBox *resampleQuality = new QComboBox; - int rsq = prefs->getPropertyRangeAndValue("Resample Quality", &min, &max); + int rsq = prefs->getPropertyRangeAndValue("Resample Quality", &min, &max, + &deflt); m_resampleQuality = rsq; for (i = min; i <= max; ++i) {