summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-15 18:08:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-15 18:08:15 +0000
commita043e39872162ebee03165fb47f26cb8b3e1b251 (patch)
tree11b387b01eac3e7ab43509a21b4908f9f7cd9b0d
parent74c624c2c8e4b0173c060b2dc14519f7c98d23aa (diff)
downloadtdelibs-a043e39872162ebee03165fb47f26cb8b3e1b251.tar.gz
tdelibs-a043e39872162ebee03165fb47f26cb8b3e1b251.zip
Fix Asteroid widget style popup menu frames
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247391 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kstyles/asteroid/asteroid.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/kstyles/asteroid/asteroid.cpp b/kstyles/asteroid/asteroid.cpp
index 63a61fdd8..22850902b 100644
--- a/kstyles/asteroid/asteroid.cpp
+++ b/kstyles/asteroid/asteroid.cpp
@@ -797,7 +797,12 @@ void AsteroidStyle::tqdrawPrimitive(TQ_PrimitiveElement pe,
case PE_PanelPopup: {
p->setPen(cg.background());
p->setBrush(cg.background());
- p->drawRect(r);
+
+ int menuborder = 3;
+ p->drawRect(r.x(), r.y(), r.x()+menuborder, r.height()); // Left
+ p->drawRect(r.x()+r.width()-menuborder, r.y(), r.width(), r.height()); // Right
+ p->drawRect(r.x(), r.y(), r.width(), r.y()+menuborder); // Top
+ p->drawRect(r.x(), r.y()+r.height()-menuborder, r.width(), r.height()); // Bottom
p->setPen(cg.dark());
p->drawLine(x2, y2, x, y2);