Changeset 5f49b20d9d in tspsg for src/mainwindow.cpp


Ignore:
Timestamp:
Aug 26, 2012, 2:28:45 AM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
bf92f16303
Parents:
f8e5161968
Message:

Closes #16: Default text color in Symbian is the same as background color.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    rf8e5161968 r5f49b20d9d  
    13131313        hilight.setHsv(color.hue(), color.saturation(), color.value() / 2);
    13141314
     1315#ifdef Q_WS_S60
     1316    /*!
     1317     * \hack HACK: Fixing some weird behavior with default Symbian theme
     1318     *  when text and background have the same color.
     1319     */
     1320    if (color != DEF_TEXT_COLOR) {
     1321#endif
    13151322    solutionText->document()->setDefaultStyleSheet(QString("* {color: %1;}").arg(color.name()));
    13161323    fmt_default.setForeground(QBrush(color));
     1324#ifdef Q_WS_S60
     1325    }
     1326#endif
    13171327
    13181328    fmt_selected.setForeground(QBrush(QColor(settings->value("Selected", DEF_SELECTED_COLOR).toString())));
Note: See TracChangeset for help on using the changeset viewer.