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


Ignore:
Timestamp:
May 31, 2011, 2:01:38 PM (14 years ago)
Author:
laleppa
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
  • trunk/src/settingsdialog.cpp

    r175 r176  
    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.