Changeset 119 in tspsg-svn for trunk/src/settingsdialog.cpp


Ignore:
Timestamp:
May 3, 2010, 4:35:38 PM (14 years ago)
Author:
laleppa
Message:
  • Improved the default font selection logic: The system default monospace (desktop systems)/sans-serif (handheld devices) font is now selected.
  • Two icons were mixed. Corrected this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/settingsdialog.cpp

    r117 r119  
    223223        cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool());
    224224
    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>();
    226226        color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>();
    227227        settings->endGroup();
     
    269269        if (QApplication::keyboardModifiers() & Qt::ShiftModifier) {
    270270                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));
    272272                        _newColor = (color != DEF_TEXT_COLOR);
    273273                        settings->remove("");
Note: See TracChangeset for help on using the changeset viewer.