diff options
author | Sami Merilä <sami.merila@nokia.com> | 2009-05-12 16:06:40 (GMT) |
---|---|---|
committer | Sami Merilä <sami.merila@nokia.com> | 2009-05-12 16:06:40 (GMT) |
commit | bd92bc77c98c5d6ceea5996702fb4db9bfac3c0f (patch) | |
tree | b548d6d8103328985bfd08887c72c89fd991a15e /src/gui/styles/qs60style.cpp | |
parent | cd18a843ce38b9871d506fa6f7c2114105b1487c (diff) | |
download | Qt-bd92bc77c98c5d6ceea5996702fb4db9bfac3c0f.zip Qt-bd92bc77c98c5d6ceea5996702fb4db9bfac3c0f.tar.gz Qt-bd92bc77c98c5d6ceea5996702fb4db9bfac3c0f.tar.bz2 |
S60style: use correct theme text color for highlighted line edit texts.
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r-- | src/gui/styles/qs60style.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp index 0fdbf13..ee9bca8 100644 --- a/src/gui/styles/qs60style.cpp +++ b/src/gui/styles/qs60style.cpp @@ -617,6 +617,11 @@ void QS60Style::polish(QWidget *widget) const QFont suggestedFont = d->s60Font( QS60StyleEnums::FC_Title, widget->font().pointSizeF()); widget->setFont(suggestedFont); + } else if (qobject_cast<QLineEdit *>(widget)) { + widgetPalette.setColor(QPalette::All, QPalette::HighlightedText, + QS60StylePrivate::s60Color(QS60StyleEnums::CL_QsnTextColors, 24, 0)); + QApplication::setPalette(widgetPalette, "QLineEdit"); + } } |