summaryrefslogtreecommitdiff
path: root/src/gui/styles
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2009-08-21 14:31:04 +0200
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2009-08-21 14:59:02 +0200
commit2b568e018ea232fe6a919b8f0027012c8921b061 (patch)
tree0d44e6e60bd99ff7f7ce97b1d86068ef3cf0d346 /src/gui/styles
parent7385c1fc7fe03836ed42cc783e840557d267cff9 (diff)
downloadqt4-tools-2b568e018ea232fe6a919b8f0027012c8921b061.tar.gz
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.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp
index 191b71ea6d..0e087308b1 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();
}