Changeset 0a4e16b182 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
May 31, 2011, 2:01:38 PM (13 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
b2be4c19a1
Parents:
9f5cc00f29
git-author:
Oleksii Serdiuk <contacts@…> (05/31/11 14:01:38)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:46:00)
Message:

Added a border to tables in the solution output. Looks more readable
with long numbers, now. The border color can be controlled through
Output/Colors/TableBorder? setting in tspsg.ini. It is in #RRGGBB format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r9f5cc00f29 r0a4e16b182  
    288288
    289289    font = qvariant_cast<QFont>(settings->value("Font", QFont(DEF_FONT_FACE, DEF_FONT_SIZE)));
    290     color = qvariant_cast<QColor>(settings->value("Colors/Text", DEF_TEXT_COLOR));
     290    color = QColor(settings->value("Colors/Text", DEF_TEXT_COLOR).toString());
    291291    settings->endGroup();
    292292
     
    395395        settings->setValue("Font", font);
    396396    if (_newColor)
    397         settings->setValue("Colors/Text", color);
     397        settings->setValue("Colors/Text", color.name());
    398398    settings->endGroup();
    399399    QDialog::accept();
Note: See TracChangeset for help on using the changeset viewer.