Changeset 129 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Sep 3, 2010, 5:06:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/settingsdialog.cpp
r128 r129 255 255 cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool()); 256 256 257 font = settings->value("Font", QFont( getDefaultFont(), DEF_FONT_SIZE)).value<QFont>();257 font = settings->value("Font", QFont(DEF_FONT_FACE, DEF_FONT_SIZE)).value<QFont>(); 258 258 color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>(); 259 259 settings->endGroup(); … … 301 301 if (QApplication::keyboardModifiers() & Qt::ShiftModifier) { 302 302 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) { 303 _newFont = (font != QFont( getDefaultFont(), DEF_FONT_SIZE));303 _newFont = (font != QFont(DEF_FONT_FACE, DEF_FONT_SIZE)); 304 304 _newColor = (color != DEF_TEXT_COLOR); 305 305 settings->remove("");
Note: See TracChangeset
for help on using the changeset viewer.