diff --git a/clients/quartz/quartz.cpp b/clients/quartz/quartz.cpp index 4459d1b302..8ac7e7fd11 100644 --- a/clients/quartz/quartz.cpp +++ b/clients/quartz/quartz.cpp @@ -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; diff --git a/clients/redmond/redmond.cpp b/clients/redmond/redmond.cpp index d6b5d76059..16e055daa6 100644 --- a/clients/redmond/redmond.cpp +++ b/clients/redmond/redmond.cpp @@ -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 {