From a043e39872162ebee03165fb47f26cb8b3e1b251 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 15 Aug 2011 18:08:15 +0000 Subject: [PATCH] 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 --- kstyles/asteroid/asteroid.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);