From ef10f9572a687e2342e12b8f5c4d01b58decc33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 17 Oct 2008 20:55:35 +0000 Subject: [PATCH] Sync r866059 from oxygen. svn path=/trunk/KDE/kdebase/workspace/; revision=872693 --- clients/ozone/oxygenbutton.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/clients/ozone/oxygenbutton.cpp b/clients/ozone/oxygenbutton.cpp index 2fb52a47a6..a3023ab4f2 100644 --- a/clients/ozone/oxygenbutton.cpp +++ b/clients/ozone/oxygenbutton.cpp @@ -209,25 +209,7 @@ void OxygenButton::paintEvent(QPaintEvent *) dark.setAlpha(120); if(client_.isActive()) { - QLinearGradient lg(x,0,x+w,0); - lg.setColorAt(0.5, dark); - dark.setAlpha(0); - lg.setColorAt(0.0, dark); - lg.setColorAt(1.0, dark); - painter.setPen(QPen(lg,1)); - - painter.drawLine(QPointF(x, titleHeight-1.5), - QPointF(x+w, titleHeight-1.5)); - - lg = QLinearGradient(x,0,x+w,0); - lg.setColorAt(0.5, light); - light.setAlpha(0); - lg.setColorAt(0.0, light); - lg.setColorAt(1.0, light); - painter.setPen(QPen(lg,1)); - - painter.drawLine(QPointF(x, titleHeight-0.5), - QPointF(x+w, titleHeight-0.5)); + helper_.drawSeparator(&painter, QRect(x, titleHeight-1.5, w, 2), color, Qt::Horizontal); } if (type_ == ButtonMenu) {