summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-23 15:18:50 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-23 18:50:40 +0100
commit5223e7eb27dc15f8428aeb66dd8c57098dedce58 (patch)
tree4255d0dfd7f40f14f4c09a68a199e807c6184fee
parent6755cbd76a880e077fd99ebac333d487ee48f392 (diff)
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>
-rw-r--r--src/widgets/styles/qwindowsvistastyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qwindowsvistastyle.cpp b/src/widgets/styles/qwindowsvistastyle.cpp
index 4c31a26f10..5c197071ec 100644
--- a/src/widgets/styles/qwindowsvistastyle.cpp
+++ b/src/widgets/styles/qwindowsvistastyle.cpp
@@ -1256,7 +1256,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,
QWindowsXPStylePrivate::MenuTheme,
MENU_POPUPITEM, stateId, option->rect);