summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2010-04-12 15:04:03 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2010-04-12 15:19:16 (GMT)
commit8576aa104528f9a2863fd097abc8bac5c956fdb8 (patch)
tree9895d110132853607a965b33ff61a8404fc8cab5 /src/gui/styles
parent9e43ab153dbbe83e1e7e2fb1e9d6815424c4b5f2 (diff)
downloadQt-8576aa104528f9a2863fd097abc8bac5c956fdb8.zip
Qt-8576aa104528f9a2863fd097abc8bac5c956fdb8.tar.gz
Qt-8576aa104528f9a2863fd097abc8bac5c956fdb8.tar.bz2
QSlider and StyleSheet: fix one pixel error while drawing the SliderAddPage
Task-number: QTBUG-9674 Reviewed-by: jbache
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qstylesheetstyle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/styles/qstylesheetstyle.cpp b/src/gui/styles/qstylesheetstyle.cpp
index cc0ce08..a1a98ba 100644
--- a/src/gui/styles/qstylesheetstyle.cpp
+++ b/src/gui/styles/qstylesheetstyle.cpp
@@ -3169,8 +3169,8 @@ void QStyleSheetStyle::drawComplexControl(ComplexControl cc, const QStyleOptionC
if (subRule1.hasDrawable()) {
QRect r(gr.topLeft(),
slider->orientation == Qt::Horizontal
- ? QPoint(hr.x()+hr.width()/2, gr.y()+gr.height())
- : QPoint(gr.x()+gr.width(), hr.y()+hr.height()/2));
+ ? QPoint(hr.x()+hr.width()/2, gr.y()+gr.height() - 1)
+ : QPoint(gr.x()+gr.width() - 1, hr.y()+hr.height()/2));
subRule1.drawRule(p, r);
}