Changeset 946f442ab0 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Jan 7, 2010, 3:48:24 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 354e06314f
- Parents:
- f1fb54b9f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
rf1fb54b9f7 r946f442ab0 68 68 vbox2->addWidget(cbScrollToEnd); 69 69 vbox2->addWidget(cbAutosize); 70 vbox2->addWidget(cbUseNativeDialogs); 70 71 71 72 // Output settings group … … 108 109 imgIcon->setLineWidth(0); 109 110 imgIcon->setPixmap(QPixmap(":/images/icons/preferences_system.png")); 110 imgIcon->setStyleSheet("background-color: #0080C0; ");111 imgIcon->setAlignment(Qt::Align Center);111 imgIcon->setStyleSheet("background-color: #0080C0; padding-top: 11px;"); 112 imgIcon->setAlignment(Qt::AlignTop | Qt::AlignHCenter); 112 113 imgIcon->setMinimumWidth(150); 113 114 … … 150 151 // Top right part (with white bg) 151 152 vbox2 = new QVBoxLayout(bgWhite); 152 vbox2->addStretch();153 // vbox2->addStretch(); 153 154 vbox2->addLayout(hbox2); 154 155 vbox2->addWidget(cbFractionalRandom); … … 157 158 vbox2->addWidget(cbScrollToEnd); 158 159 vbox2->addWidget(cbAutosize); 160 vbox2->addWidget(cbUseNativeDialogs); 159 161 vbox2->addWidget(cbSaveState); 160 162 vbox2->addStretch(); … … 193 195 spinRandMax->setValue(settings->value("MaxCost",DEF_RAND_MAX).toInt()); 194 196 cbFractionalRandom->setChecked(settings->value("FractionalRandom", DEF_FRACTIONAL_RANDOM).toBool()); 195 cbAutosize->setChecked(settings->value("Autosize",true).toBool()); 197 cbAutosize->setChecked(settings->value("Autosize", DEF_AUTOSIZE).toBool()); 198 cbUseNativeDialogs->setChecked(settings->value("UseNativeDialogs", DEF_USE_NATIVE_DIALOGS).toBool()); 196 199 #ifndef Q_OS_WINCE 197 cbSaveState->setChecked(settings->value("SavePos", false).toBool());200 cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool()); 198 201 #endif // Q_OS_WINCE 199 202 … … 203 206 cbCitiesLimit->setChecked(settings->value("UseShowMatrixLimit", DEF_USE_SHOW_MATRIX_LIMIT && cbShowMatrix->isChecked()).toBool()); 204 207 spinCitiesLimit->setEnabled(cbShowMatrix->isChecked()); 205 spinCitiesLimit->setValue(settings->value("ShowMatrix CitiesLimit", DEF_SHOW_MATRIX_CITY_LIMIT).toInt());208 spinCitiesLimit->setValue(settings->value("ShowMatrixLimit", DEF_SHOW_MATRIX_LIMIT).toInt()); 206 209 spinCitiesLimit->setMaximum(MAX_NUM_CITIES); 207 210 cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool()); … … 239 242 settings->setValue("SavePos", cbSaveState->isChecked()); 240 243 #endif // Q_OS_WINCE 244 settings->setValue("UseNativeDialogs", cbUseNativeDialogs->isChecked()); 241 245 settings->setValue("Autosize", cbAutosize->isChecked()); 242 246 settings->setValue("MinCost", spinRandMin->value()); … … 248 252 settings->setValue("UseShowMatrixLimit", cbShowMatrix->isChecked() && cbCitiesLimit->isChecked()); 249 253 if (cbCitiesLimit->isChecked()) 250 settings->setValue("ShowMatrix CitiesLimit", spinCitiesLimit->value());254 settings->setValue("ShowMatrixLimit", spinCitiesLimit->value()); 251 255 settings->setValue("ScrollToEnd", cbScrollToEnd->isChecked()); 252 256 if (newFont)
Note: See TracChangeset
for help on using the changeset viewer.