Changeset 57 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Aug 23, 2009, 1:26:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/settingsdialog.cpp
r56 r57 44 44 spacer = new QSpacerItem(0,0,QSizePolicy::Minimum,QSizePolicy::Expanding); 45 45 vbox2->addItem(spacer); 46 vbox2->addWidget(cbAutosize); 46 47 47 48 // Output settings group … … 92 93 labelHint->setObjectName("labelHint"); 93 94 labelHint->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); 94 labelHint->setMinimumSize(QSize(1 75,28));95 labelHint->setMinimumSize(QSize(190,28)); 95 96 labelHint->setMaximumSize(QSize(0xFFFFFF,28)); 96 97 labelHint->setTextFormat(Qt::PlainText); … … 130 131 vbox2->addItem(spacer); 131 132 vbox2->addLayout(hbox2); 133 vbox2->addWidget(cbAutosize); 132 134 vbox2->addWidget(cbSaveState); 133 135 spacer = new QSpacerItem(0,0,QSizePolicy::Minimum,QSizePolicy::Expanding); … … 164 166 #endif // Q_OS_WINCE 165 167 settings = new QSettings(QSettings::IniFormat,QSettings::UserScope,"TSPSG","tspsg"); 168 spinRandMin->setMaximum(MAX_RAND_VALUE); 166 169 spinRandMin->setValue(settings->value("MinCost",DEF_RAND_MIN).toInt()); 170 spinRandMax->setMaximum(MAX_RAND_VALUE); 167 171 spinRandMax->setValue(settings->value("MaxCost",DEF_RAND_MAX).toInt()); 172 cbAutosize->setChecked(settings->value("Autosize",true).toBool()); 168 173 #ifndef Q_OS_WINCE 169 174 cbSaveState->setChecked(settings->value("SavePos",false).toBool()); … … 180 185 settings->setValue("SavePos",cbSaveState->isChecked()); 181 186 #endif // Q_OS_WINCE 187 settings->setValue("Autosize",cbAutosize->isChecked()); 182 188 settings->setValue("MinCost",spinRandMin->value()); 183 189 settings->setValue("MaxCost",spinRandMax->value());
Note: See TracChangeset
for help on using the changeset viewer.