author | leseb <leseb> | 2002-07-13 12:37:36 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-07-13 12:37:36 (UTC) |
commit | 6337e3836497ede8bb47aea5c7b65f4f8c08c4cd (patch) (unidiff) | |
tree | 3a2b4d0d2ee302b1c01fbe8c0f3fbf40f8a30b3b | |
parent | 804c1ce9554548d1c0f46d28eb1b8f63b4341fdb (diff) | |
download | opie-6337e3836497ede8bb47aea5c7b65f4f8c08c4cd.zip opie-6337e3836497ede8bb47aea5c7b65f4f8c08c4cd.tar.gz opie-6337e3836497ede8bb47aea5c7b65f4f8c08c4cd.tar.bz2 |
Small fix in drawing menubar
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index fc925b8..87b5488 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp | |||
@@ -1993,13 +1993,13 @@ void LiquidStyle::drawMenuBarItem(QPainter *p, int x, int y, int w, int h, | |||
1993 | QMenuItem *mi, QColorGroup &g, bool /*enabled*/, bool active ) | 1993 | QMenuItem *mi, QColorGroup &g, bool /*enabled*/, bool active ) |
1994 | { | 1994 | { |
1995 | x -= 2; // Bug in Qt/E | 1995 | if(active){ |
1996 | y -= 2; | 1996 | x -= 2; // Bug in Qt/E |
1997 | w += 2; | 1997 | y -= 2; |
1998 | h += 2; | 1998 | w += 2; |
1999 | h += 2; | ||
2000 | } | ||
1999 | 2001 | ||
2000 | p-> fillRect ( x, y, w, h, g.brush(QColorGroup::Background)); | 2002 | p-> fillRect ( x, y, w, h, g.brush(QColorGroup::Background)); |
2001 | 2003 | ||
2002 | w -= 2; | ||
2003 | |||
2004 | if(menuHandler->useShadowText()){ | 2004 | if(menuHandler->useShadowText()){ |
2005 | QColor shadow; | 2005 | QColor shadow; |