deprecated--
QPixmap::convertFromImage() svn path=/trunk/KDE/kdebase/kmenuedit/; revision=532766icc-effect-5.14.5
parent
46c83527e0
commit
e648ada92f
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue