summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-23 14:18:50 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-28 12:29:35 (GMT)
commit966d08028c8499db2c12c33a4de79ea261a689a6 (patch)
treebb8c4918984ac480af90a96edd0a4032f0855fef /src
parent690ba6349844d38f1f1778a991980848bb99913f (diff)
downloadQt-966d08028c8499db2c12c33a4de79ea261a689a6.zip
Qt-966d08028c8499db2c12c33a4de79ea261a689a6.tar.gz
Qt-966d08028c8499db2c12c33a4de79ea261a689a6.tar.bz2
Draw disabled QMenu items in inactive state in vista style.
Task-number: QTBUG-27992 Change-Id: I4ed5661cfe0d0a10143224b73fbad6fac4927a37 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> (cherry picked from qtbase/5223e7eb27dc15f8428aeb66dd8c57098dedce58)
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qwindowsvistastyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qwindowsvistastyle.cpp b/src/gui/styles/qwindowsvistastyle.cpp
index ba47c87..7db6af3 100644
--- a/src/gui/styles/qwindowsvistastyle.cpp
+++ b/src/gui/styles/qwindowsvistastyle.cpp
@@ -1298,7 +1298,7 @@ void QWindowsVistaStyle::drawControl(ControlElement element, const QStyleOption
menuitem->rect.y(), checkcol - 6, menuitem->rect.height()));
if (act) {
- stateId = MBI_HOT;
+ stateId = dis ? MBI_DISABLED : MBI_HOT;
XPThemeData theme2(widget, painter, QLatin1String("MENU"), MENU_POPUPITEM, stateId, option->rect);
d->drawBackground(theme2);
}