summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/styles/liquid/liquid.cpp12
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
@@ -1983,33 +1983,33 @@ void LiquidStyle::drawArrow(QPainter *p, Qt::ArrowType type, bool on, int x,
1983 a.setPoints(QCOORDARRLEN(r_arrow), r_arrow); 1983 a.setPoints(QCOORDARRLEN(r_arrow), r_arrow);
1984 break; 1984 break;
1985 } 1985 }
1986 1986
1987 a.translate(x, y); 1987 a.translate(x, y);
1988 p->drawLineSegments(a); 1988 p->drawLineSegments(a);
1989} 1989}
1990 1990
1991 1991
1992void LiquidStyle::drawMenuBarItem(QPainter *p, int x, int y, int w, int h, 1992void 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;
2006 if(p->device() && p->device()->devType() == QInternal::Widget && 2006 if(p->device() && p->device()->devType() == QInternal::Widget &&
2007 ((QWidget *)p->device())->inherits("QMenuBar")){ 2007 ((QWidget *)p->device())->inherits("QMenuBar")){
2008 shadow = ((QMenuBar*)p->device())->isTopLevel() ? g.button().dark(130) : 2008 shadow = ((QMenuBar*)p->device())->isTopLevel() ? g.button().dark(130) :
2009 g.background().dark(130); 2009 g.background().dark(130);
2010 } 2010 }
2011 else 2011 else
2012 shadow = g.background().dark(130); 2012 shadow = g.background().dark(130);
2013 2013
2014 if(active){ 2014 if(active){
2015 drawClearBevel(p, x+1, y+1, w-1, h-1, g.button(), g.background()); 2015 drawClearBevel(p, x+1, y+1, w-1, h-1, g.button(), g.background());