diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-07 22:15:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-07 22:15:57 +0000 |
commit | e789477ef1d0a99f7795890210b4fb68f45fffdc (patch) | |
tree | da3a3ebdd76080a0e2de700b6fd963dc2664ed20 /kstyles | |
parent | 7ffbe1bbdd9ef01527287476b6a541fc6255f1f3 (diff) | |
download | tdelibs-e789477ef1d0a99f7795890210b4fb68f45fffdc.tar.gz tdelibs-e789477ef1d0a99f7795890210b4fb68f45fffdc.zip |
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
Diffstat (limited to 'kstyles')
-rw-r--r-- | kstyles/light/lightstyle-v2.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |