diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2012-11-23 14:18:50 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-28 12:29:35 (GMT) |
commit | 966d08028c8499db2c12c33a4de79ea261a689a6 (patch) | |
tree | bb8c4918984ac480af90a96edd0a4032f0855fef /src/gui | |
parent | 690ba6349844d38f1f1778a991980848bb99913f (diff) | |
download | Qt-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/gui')
-rw-r--r-- | src/gui/styles/qwindowsvistastyle.cpp | 2 |
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); } |