Changeset 8b0661d1ee in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
May 3, 2010, 4:35:38 PM (14 years ago)
Author:
Oleksii Serdiuk
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)
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
  • src/settingsdialog.cpp

    r7bb19df196 r8b0661d1ee  
    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.