The separator that is drawn below buttons was still using the old style. ;)

svn path=/trunk/KDE/kdebase/workspace/; revision=866059
This commit is contained in:
Huynh Huu Long 2008-09-29 21:25:29 +00:00
parent 30f293c01f
commit 1c1c1bb6cc

View file

@ -201,25 +201,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) {