As it turns out, drawRoundedRect() doesn't directly correlate to the defunct drawRoundRect().
Reverted. Sorry Matthew Woehlke and others. svn path=/trunk/KDE/kdebase/runtime/kstyles/; revision=777644
This commit is contained in:
parent
1aa4b166bb
commit
94f7fddf54
1 changed files with 2 additions and 2 deletions
|
@ -225,13 +225,13 @@ void PlastikButton::drawButton(QPainter *painter)
|
|||
outlineGradient.setColorAt(0.0, contourTop);
|
||||
outlineGradient.setColorAt(1.0, contourBottom);
|
||||
bP.setBrush(outlineGradient);
|
||||
bP.drawRoundedRect(r, rxo, ryo);
|
||||
bP.drawRoundRect(r, rxo, ryo);
|
||||
// surface
|
||||
QLinearGradient surfaceGradient(0, 0, 0, r.height());
|
||||
surfaceGradient.setColorAt(0.0, surfaceTop);
|
||||
surfaceGradient.setColorAt(1.0, surfaceBottom);
|
||||
bP.setBrush(surfaceGradient);
|
||||
bP.drawRoundedRect(r.adjusted(1,1,-1,-1), rxi, ryi);
|
||||
bP.drawRoundRect(r.adjusted(1,1,-1,-1), rxi, ryi);
|
||||
}
|
||||
|
||||
if (type() == MenuButton)
|
||||
|
|
Loading…
Reference in a new issue