deprecated--

QPixmap::convertFromImage()

svn path=/trunk/KDE/kdebase/kmenuedit/; revision=532766
icc-effect-5.14.5
Thorsten Roeder 2006-04-22 18:12:21 +00:00
parent 46c83527e0
commit e648ada92f
2 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ void QuartzButton::drawButton(QPainter *p)
QPixmap tmpPix;
// Smooth scale the image
tmpPix.convertFromImage( btnpix.convertToImage().scaled(height(), height(), Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
tmpPix.convertFromImage( btnpix.toImage().scaled(height(), height(), Qt::IgnoreAspectRatio,Qt::SmoothTransformation));
p->drawPixmap( 0, 0, tmpPix );
} else {
Offset += (height() - 16)/2;

View File

@ -339,7 +339,7 @@ void RedmondButton::drawButton(QPainter *p)
// Smooth scale the menu button pixmap
tmpPix.convertFromImage(
pix.convertToImage().scaled( height(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation ));
pix.toImage().scaled( height(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation ));
p->drawPixmap( 0, 0, tmpPix );
} else {