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


Ignore:
Timestamp:
Sep 10, 2010, 7:49:32 PM (14 years ago)
Author:
laleppa
Message:
  • TSPSG now compiles when QtConcurrent? is not available (QT_NO_CONCURRENT is set).
  • Don't set non-existent icons under Windows Mobile.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/settingsdialog.cpp

    r134 r135  
    255255        cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool());
    256256
    257         font = settings->value("Font", QFont(DEF_FONT_FACE, DEF_FONT_SIZE)).value<QFont>();
    258         color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>();
     257        font = qvariant_cast<QFont>(settings->value("Font", QFont(DEF_FONT_FACE, DEF_FONT_SIZE)));
     258        color = qvariant_cast<QColor>(settings->value("Colors/Text", DEF_TEXT_COLOR));
    259259        settings->endGroup();
    260260
Note: See TracChangeset for help on using the changeset viewer.