Changeset f1fb54b9f7 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Jan 7, 2010, 2:24:18 AM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 946f442ab0
- Parents:
- 4ccf855df8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r4ccf855df8 rf1fb54b9f7 63 63 vbox2->addWidget(groupOutputSettings); 64 64 vbox2->addStretch(); 65 vbox2->addWidget(cbFractionalRandom); 65 66 vbox2->addWidget(cbShowMatrix); 66 67 vbox2->addLayout(layoutCitiesLimit); 68 vbox2->addWidget(cbScrollToEnd); 67 69 vbox2->addWidget(cbAutosize); 68 70 … … 150 152 vbox2->addStretch(); 151 153 vbox2->addLayout(hbox2); 154 vbox2->addWidget(cbFractionalRandom); 152 155 vbox2->addWidget(cbShowMatrix); 153 156 vbox2->addLayout(layoutCitiesLimit); 157 vbox2->addWidget(cbScrollToEnd); 154 158 vbox2->addWidget(cbAutosize); 155 159 vbox2->addWidget(cbSaveState); … … 188 192 spinRandMax->setMaximum(MAX_RAND_VALUE); 189 193 spinRandMax->setValue(settings->value("MaxCost",DEF_RAND_MAX).toInt()); 194 cbFractionalRandom->setChecked(settings->value("FractionalRandom", DEF_FRACTIONAL_RANDOM).toBool()); 190 195 cbAutosize->setChecked(settings->value("Autosize",true).toBool()); 191 196 #ifndef Q_OS_WINCE … … 200 205 spinCitiesLimit->setValue(settings->value("ShowMatrixCitiesLimit", DEF_SHOW_MATRIX_CITY_LIMIT).toInt()); 201 206 spinCitiesLimit->setMaximum(MAX_NUM_CITIES); 207 cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool()); 202 208 203 209 font = settings->value("Font",QFont(DEF_FONT_FAMILY,DEF_FONT_SIZE)).value<QFont>(); … … 236 242 settings->setValue("MinCost", spinRandMin->value()); 237 243 settings->setValue("MaxCost", spinRandMax->value()); 244 settings->setValue("FractionalRandom", cbFractionalRandom->isChecked()); 238 245 239 246 settings->beginGroup("Output"); … … 242 249 if (cbCitiesLimit->isChecked()) 243 250 settings->setValue("ShowMatrixCitiesLimit", spinCitiesLimit->value()); 251 settings->setValue("ScrollToEnd", cbScrollToEnd->isChecked()); 244 252 if (newFont) 245 253 settings->setValue("Font", font);
Note: See TracChangeset
for help on using the changeset viewer.