Changeset 7cd6da5021 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Sep 3, 2010, 5:06:43 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:
cb1608daaf
Parents:
ac76a6a753
git-author:
Oleksii Serdiuk <contacts@…> (09/03/10 17:06:43)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:57)
Message:

+ TSPSG now uses DejaVu? LGC Sans Mono as the default font and comes with it "embedded" in the executable.

  • Updated tspsg.tag file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    rac76a6a753 r7cd6da5021  
    255255        cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool());
    256256
    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>();
    258258        color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>();
    259259        settings->endGroup();
     
    301301        if (QApplication::keyboardModifiers() & Qt::ShiftModifier) {
    302302                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));
    304304                        _newColor = (color != DEF_TEXT_COLOR);
    305305                        settings->remove("");
Note: See TracChangeset for help on using the changeset viewer.