Changeset 104 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Apr 19, 2010, 10:33:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/settingsdialog.cpp
r100 r104 41 41 buttonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close without saving preferences")); 42 42 buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor)); 43 44 QPalette p = bgWhite->palette(); 45 p.setColor(QPalette::Window, p.color(QPalette::Base)); 46 bgWhite->setPalette(p); 47 48 p = lineHorizontal->palette(); 49 p.setColor(QPalette::Window, p.color(QPalette::Text)); 50 lineHorizontal->setPalette(p); 43 51 44 52 #ifdef HANDHELD … … 195 203 196 204 font = settings->value("Font",QFont(DEF_FONT_FAMILY,DEF_FONT_SIZE)).value<QFont>(); 197 color = settings->value("Color ",DEF_FONT_COLOR).value<QColor>();205 color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>(); 198 206 settings->endGroup(); 199 207 … … 239 247 if (QMessageBox::question(this, tr("Settings Reset"), tr("Do you really want to <b>reset all application settings to their defaults</b>?"), QMessageBox::RestoreDefaults | QMessageBox::Cancel) == QMessageBox::RestoreDefaults) { 240 248 _newFont = (font != QFont(DEF_FONT_FAMILY, DEF_FONT_SIZE)); 241 _newColor = (color != DEF_ FONT_COLOR);249 _newColor = (color != DEF_TEXT_COLOR); 242 250 settings->remove(""); 243 251 settings->setValue("SettingsReset", true); … … 280 288 settings->setValue("Font", font); 281 289 if (_newColor) 282 settings->setValue("Color ", color);290 settings->setValue("Colors/Text", color); 283 291 settings->endGroup(); 284 292 QDialog::accept();
Note: See TracChangeset
for help on using the changeset viewer.