summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-11-30 13:37:15 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-11-30 13:44:38 (GMT)
commite18bad03dd51aed881a86715bfc17ef0c7fe5af9 (patch)
tree7e25c6c043188abecc826092f607cb3e033a11b0 /src/gui
parentef8619e587d85de29ee01def2e920c4a7ca6829a (diff)
downloadQt-e18bad03dd51aed881a86715bfc17ef0c7fe5af9.zip
Qt-e18bad03dd51aed881a86715bfc17ef0c7fe5af9.tar.gz
Qt-e18bad03dd51aed881a86715bfc17ef0c7fe5af9.tar.bz2
Do not fill the disabled background of item.
This is a regression against Qt 4.5 If one want special background for disabled item, one can use stylesheet, or BackgroundRole This partially revert 127e68d3dc4ff8329 Reviewed-by: jbache Task-number: QT-2388 Task-number: QTBUG-6319
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qcommonstyle.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index 4c9541b..5028e5f 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -770,8 +770,6 @@ void QCommonStyle::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, Q
p->fillRect(vopt->rect, vopt->palette.brush(cg, QPalette::Highlight));
else if (vopt->features & QStyleOptionViewItemV2::Alternate)
p->fillRect(vopt->rect, vopt->palette.brush(cg, QPalette::AlternateBase));
- else if (!(vopt->state & QStyle::State_Enabled))
- p->fillRect(vopt->rect, vopt->palette.brush(cg, QPalette::Base));
}
break;
case PE_PanelItemViewItem: