diff options
author | Andy Shaw <andy.shaw@nokia.com> | 2009-09-24 13:37:44 (GMT) |
---|---|---|
committer | Andy Shaw <andy.shaw@nokia.com> | 2009-09-24 13:37:44 (GMT) |
commit | 318b56f0f15d3f194e965750c591ee5847ef8ae9 (patch) | |
tree | 818790f1974067acc38ade90c3e41329632bf575 /src | |
parent | 1a431e850893b6b162c833f4f148f090e2427dda (diff) | |
download | Qt-318b56f0f15d3f194e965750c591ee5847ef8ae9.zip Qt-318b56f0f15d3f194e965750c591ee5847ef8ae9.tar.gz Qt-318b56f0f15d3f194e965750c591ee5847ef8ae9.tar.bz2 |
Fix the area above the menubar to have the right background
When a gradient was set on the whole window then there was a line above
the menubar that repeated the gradient for each menu item. Since there
is a workaround in place already for the background of the menu to get
painted correctly, we just extend the rect this covers to ensure the
extra line of pixels is included.
Reviewed-by: Jens Bache-Wiig
Diffstat (limited to 'src')
-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 7803e92..b062a3f 100644 --- a/src/gui/styles/qwindowsvistastyle.cpp +++ b/src/gui/styles/qwindowsvistastyle.cpp @@ -1214,7 +1214,7 @@ void QWindowsVistaStyle::drawControl(ControlElement element, const QStyleOption alignment |= Qt::TextHideMnemonic; //The rect adjustment is a workaround for the menu not really filling its background. - XPThemeData theme(widget, painter, QLatin1String("MENU"), MENU_BARBACKGROUND, 0, option->rect.adjusted(-1, 1 , 2, 1)); + XPThemeData theme(widget, painter, QLatin1String("MENU"), MENU_BARBACKGROUND, 0, option->rect.adjusted(-1, 0, 2, 1)); d->drawBackground(theme); int stateId = MBI_NORMAL; |