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:
Bill Egert 2008-02-21 02:47:17 +00:00
parent 1aa4b166bb
commit 94f7fddf54

View file

@ -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)