From e789477ef1d0a99f7795890210b4fb68f45fffdc Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 7 May 2011 22:15:57 +0000 Subject: Fix Lightv2 style scrollbar garbage being shown Thanks to Ilya Chernykh for the patch! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1230819 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kstyles/light/lightstyle-v2.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kstyles') diff --git a/kstyles/light/lightstyle-v2.cpp b/kstyles/light/lightstyle-v2.cpp index 90fd4d00f..0d27285d7 100644 --- a/kstyles/light/lightstyle-v2.cpp +++ b/kstyles/light/lightstyle-v2.cpp @@ -501,7 +501,8 @@ void LightStyleV2::tqdrawPrimitive( TQ_PrimitiveElement pe, p->drawLine(r.topLeft(), r.topRight()); p->setPen(cg.background()); p->drawLine(r.left(), r.top() + 1, r.right(), r.top() + 1); - fr.addCoords(0, 2, 0, 0); + p->drawLine(r.left(), r.bottom(), r.right(), r.bottom()); + fr.addCoords(0, 2, 0, -1); } else { p->drawLine(r.topLeft(), r.bottomLeft()); p->setPen(cg.background()); @@ -523,11 +524,13 @@ void LightStyleV2::tqdrawPrimitive( TQ_PrimitiveElement pe, if (flags & Style_Horizontal) { p->drawLine(r.topLeft(), r.topRight()); p->setPen(cg.background()); + p->drawLine(r.left(), r.bottom(), r.right(), r.bottom()); p->drawLine(r.left(), r.top() + 1, r.right(), r.top() + 1); fr.addCoords(0, 2, 0, -1); } else { p->drawLine(r.topLeft(), r.bottomLeft()); p->setPen(cg.background()); + p->drawLine(r.right(), r.top(), r.right(), r.bottom()); p->drawLine(r.left() + 1, r.top(), r.left() + 1, r.bottom()); fr.addCoords(2, 0, -1, 0); } -- cgit v1.2.1