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
parent
6755cbd76a
commit
5223e7eb27
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue