drawRoundedRect() function was introduced in Qt 4.4.

drawRoundRect() has become obsolete.

svn path=/trunk/KDE/kdebase/workspace/; revision=776195
This commit is contained in:
Bill Egert 2008-02-17 16:09:38 +00:00
parent 88c7325914
commit 9ba65b9ddc

View file

@ -214,10 +214,10 @@ void PlastikButton::drawButton(QPainter *painter)
bP.drawTiledPixmap(0, 0, width(), width(), m_client->getTitleBarTile(active) ); bP.drawTiledPixmap(0, 0, width(), width(), m_client->getTitleBarTile(active) );
if (type() != MenuButton || hover || animProgress != 0) { if (type() != MenuButton || hover || animProgress != 0) {
int rxo = 600/width(); qreal rxo = 600/width();
int ryo = 600/height(); qreal ryo = 600/height();
int rxi = 500/width(); qreal rxi = 500/width();
int ryi = 500/height(); qreal ryi = 500/height();
bP.setPen(Qt::NoPen); bP.setPen(Qt::NoPen);
bP.setRenderHints(QPainter::Antialiasing); bP.setRenderHints(QPainter::Antialiasing);
// contour // contour
@ -225,13 +225,13 @@ void PlastikButton::drawButton(QPainter *painter)
outlineGradient.setColorAt(0.0, contourTop); outlineGradient.setColorAt(0.0, contourTop);
outlineGradient.setColorAt(1.0, contourBottom); outlineGradient.setColorAt(1.0, contourBottom);
bP.setBrush(outlineGradient); bP.setBrush(outlineGradient);
bP.drawRoundRect(r, rxo, ryo); bP.drawRoundedRect(r, rxo, ryo);
// surface // surface
QLinearGradient surfaceGradient(0, 0, 0, r.height()); QLinearGradient surfaceGradient(0, 0, 0, r.height());
surfaceGradient.setColorAt(0.0, surfaceTop); surfaceGradient.setColorAt(0.0, surfaceTop);
surfaceGradient.setColorAt(1.0, surfaceBottom); surfaceGradient.setColorAt(1.0, surfaceBottom);
bP.setBrush(surfaceGradient); bP.setBrush(surfaceGradient);
bP.drawRoundRect(r.adjusted(1,1,-1,-1), rxi, ryi); bP.drawRoundedRect(r.adjusted(1,1,-1,-1), rxi, ryi);
} }
if (type() == MenuButton) if (type() == MenuButton)