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:
parent
30f293c01f
commit
1c1c1bb6cc
1 changed files with 1 additions and 19 deletions
|
@ -201,25 +201,7 @@ void OxygenButton::paintEvent(QPaintEvent *)
|
||||||
dark.setAlpha(120);
|
dark.setAlpha(120);
|
||||||
|
|
||||||
if(client_.isActive()) {
|
if(client_.isActive()) {
|
||||||
QLinearGradient lg(x,0,x+w,0);
|
helper_.drawSeparator(&painter, QRect(x, titleHeight-1.5, w, 2), color, Qt::Horizontal);
|
||||||
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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type_ == ButtonMenu) {
|
if (type_ == ButtonMenu) {
|
||||||
|
|
Loading…
Reference in a new issue