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>
bb10
Friedemann Kleint 2012-11-23 15:18:50 +01:00 committed by The Qt Project
parent 6755cbd76a
commit 5223e7eb27
1 changed files with 1 additions and 1 deletions

View File

@ -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);