summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merila <sami.merila@nokia.com>2010-10-06 07:02:45 (GMT)
committerSami Merila <sami.merila@nokia.com>2010-10-06 07:02:45 (GMT)
commit9979154d2fd757396ef4685dbbb9bad95c3bf7ff (patch)
treee673e98ac4539ed30be0464892316549c56dfab7 /src/gui/styles/qs60style.cpp
parentb3f895fd97deda0c7c5bfd704c04450e7afee748 (diff)
downloadQt-9979154d2fd757396ef4685dbbb9bad95c3bf7ff.zip
Qt-9979154d2fd757396ef4685dbbb9bad95c3bf7ff.tar.gz
Qt-9979154d2fd757396ef4685dbbb9bad95c3bf7ff.tar.bz2
QS60Style: Highlighted TreeBranch indicator is incorrect
Part of the fix for QTBUG-13553 incorrectly uses commonstyle to draw branch highlight, when it should use QS60Style. As a fix, commonstyle should not be used unless theme palette has been tempered with. Task-number: QTBUG-13699 Reviewed-by: Miikka Heikkinen
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-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 718774e..1e32bd8 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2453,7 +2453,7 @@ void QS60Style::drawPrimitive(PrimitiveElement element, const QStyleOption *opti
case PE_PanelItemViewRow: // ### Qt 5: remove
#ifndef QT_NO_ITEMVIEWS
if (const QStyleOptionViewItemV4 *vopt = qstyleoption_cast<const QStyleOptionViewItemV4 *>(option)) {
- if (QS60StylePrivate::equalToThemePalette(vopt->palette.base().texture().cacheKey(), QPalette::Base)) {
+ if (!QS60StylePrivate::equalToThemePalette(vopt->palette.base().texture().cacheKey(), QPalette::Base)) {
//QPalette::Base has been changed, let commonstyle draw the item
commonStyleDraws = true;
} else {