summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-06-12 14:38:20 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-06-12 14:38:20 (GMT)
commit32bd7c09327f0234ac5415d029d76aa3bab1feaa (patch)
tree43b924ea4c3f17dd9f361c67a4296fd9843ab7cf /src
parent2a7d22330226c0a1ef6bb5c35f07241a05429913 (diff)
downloadQt-32bd7c09327f0234ac5415d029d76aa3bab1feaa.zip
Qt-32bd7c09327f0234ac5415d029d76aa3bab1feaa.tar.gz
Qt-32bd7c09327f0234ac5415d029d76aa3bab1feaa.tar.bz2
S60Style: Itemview active icons are rendered as disabled and vice versa.
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qs60style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 83f1698..c6118d6 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -1387,7 +1387,7 @@ void QS60Style::drawControl(ControlElement element, const QStyleOption *option,
QS60StylePrivate::drawSkinElement(QS60StylePrivate::SE_ListHighlight, painter, option->rect, flags);
// draw the icon
- const QIcon::Mode mode = !(voptAdj.state & QStyle::State_Enabled) ? QIcon::Normal : QIcon::Disabled;
+ const QIcon::Mode mode = (voptAdj.state & QStyle::State_Enabled) ? QIcon::Normal : QIcon::Disabled;
const QIcon::State state = voptAdj.state & QStyle::State_Open ? QIcon::On : QIcon::Off;
voptAdj.icon.paint(painter, iconRect, voptAdj.decorationAlignment, mode, state);