Changeset 8b0661d1ee in tspsg for src/settingsdialog.cpp
- Timestamp:
- May 3, 2010, 4:35:38 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- bcd2a3b47a
- Parents:
- 7bb19df196
- git-author:
- Oleksii Serdiuk <contacts@…> (05/03/10 16:35:38)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:41:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r7bb19df196 r8b0661d1ee 223 223 cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool()); 224 224 225 font = settings->value("Font", QFont(DEF_FONT_FAMILY, DEF_FONT_SIZE)).value<QFont>();225 font = settings->value("Font", QFont(getDefaultFont(), DEF_FONT_SIZE)).value<QFont>(); 226 226 color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>(); 227 227 settings->endGroup(); … … 269 269 if (QApplication::keyboardModifiers() & Qt::ShiftModifier) { 270 270 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) { 271 _newFont = (font != QFont( DEF_FONT_FAMILY, DEF_FONT_SIZE));271 _newFont = (font != QFont(getDefaultFont(), DEF_FONT_SIZE)); 272 272 _newColor = (color != DEF_TEXT_COLOR); 273 273 settings->remove("");
Note: See TracChangeset
for help on using the changeset viewer.