comparison main/PreferencesDialog.cpp @ 234:e3ff897a60bf

* Ensure plugin version is updated when a transform is re-run using a newer plugin -- so that the plugin version saved in the session corresponds with the one that was actually used, not the one previously specified * Fix uninitialised font size in preferences -- was causing all sorts of grief
author Chris Cannam
date Mon, 28 Jan 2008 17:43:44 +0000
parents d7ded015af32
children 99fa3387dfef
comparison
equal deleted inserted replaced
233:5544593dd850 234:e3ff897a60bf
158 this, SLOT(backgroundModeChanged(int))); 158 this, SLOT(backgroundModeChanged(int)));
159 159
160 QSpinBox *fontSize = new QSpinBox; 160 QSpinBox *fontSize = new QSpinBox;
161 int fs = prefs->getPropertyRangeAndValue("View Font Size", &min, &max, 161 int fs = prefs->getPropertyRangeAndValue("View Font Size", &min, &max,
162 &deflt); 162 &deflt);
163 m_viewFontSize = fs;
163 fontSize->setMinimum(min); 164 fontSize->setMinimum(min);
164 fontSize->setMaximum(max); 165 fontSize->setMaximum(max);
165 fontSize->setSuffix(" pt"); 166 fontSize->setSuffix(" pt");
166 fontSize->setSingleStep(1); 167 fontSize->setSingleStep(1);
167 fontSize->setValue(fs); 168 fontSize->setValue(fs);