Sync r866059 from oxygen.
svn path=/trunk/KDE/kdebase/workspace/; revision=872693
This commit is contained in:
parent
dcd479726b
commit
ef10f9572a
1 changed files with 1 additions and 19 deletions
|
@ -209,25 +209,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