diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-08-21 12:31:04 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-08-21 12:59:02 (GMT) |
commit | 2b568e018ea232fe6a919b8f0027012c8921b061 (patch) | |
tree | 0d44e6e60bd99ff7f7ce97b1d86068ef3cf0d346 /src/gui/styles | |
parent | 7385c1fc7fe03836ed42cc783e840557d267cff9 (diff) | |
download | Qt-2b568e018ea232fe6a919b8f0027012c8921b061.zip Qt-2b568e018ea232fe6a919b8f0027012c8921b061.tar.gz Qt-2b568e018ea232fe6a919b8f0027012c8921b061.tar.bz2 |
Fix double drawing of background in XP scrollbar
Task-number: 259998
Reviewed-by: eskil
The patch removes double drawing of SBP_LOWERTRACKVERT/HORZ
as it is redundant to draw this under the gripper as well as on
the bar itself. It also breaks for certain non-standard XP themes.
The patch was suggested by Jonathan Liu.
Diffstat (limited to 'src/gui/styles')
-rw-r--r-- | src/gui/styles/qwindowsxpstyle.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp index 191b71e..0e08730 100644 --- a/src/gui/styles/qwindowsxpstyle.cpp +++ b/src/gui/styles/qwindowsxpstyle.cpp @@ -2672,11 +2672,8 @@ void QWindowsXPStyle::drawComplexControl(ComplexControl cc, const QStyleOptionCo // Draw gripper if there is enough space if (!gripperBounds.isEmpty()) { p->save(); - XPThemeData grippBackground = theme; - grippBackground.partId = flags & State_Horizontal ? SBP_LOWERTRACKHORZ : SBP_LOWERTRACKVERT; theme.rect = gripperBounds; p->setClipRegion(d->region(theme));// Only change inside the region of the gripper - d->drawBackground(grippBackground);// The gutter is the grippers background d->drawBackground(theme); // Transparent gripper ontop of background p->restore(); } |