diff --git a/clients/default/kdedefault.cpp b/clients/default/kdedefault.cpp index aa68f04b7c..62dfe612b3 100644 --- a/clients/default/kdedefault.cpp +++ b/clients/default/kdedefault.cpp @@ -695,7 +695,7 @@ void KDEDefaultButton::drawButton(QPainter *p) // Smooth scale the pixmap for small titlebars // This is slow, but we assume this isn't done too often if ( width() < 16 ) { - btnpix = QPixmap::fromImage(btnpix.toImage().scaled(12, 12)); + btnpix.scaled(12, 12); p->drawPixmap( 0, 0, btnpix ); } else diff --git a/clients/plastik/plastikbutton.cpp b/clients/plastik/plastikbutton.cpp index 29eead9b21..111dc28530 100644 --- a/clients/plastik/plastikbutton.cpp +++ b/clients/plastik/plastikbutton.cpp @@ -261,7 +261,7 @@ void PlastikButton::drawButton(QPainter *painter) { QPixmap menuIcon(m_client->icon().pixmap( style()->pixelMetric( QStyle::PM_SmallIconSize ) )); if (width() < menuIcon.width() || height() < menuIcon.height() ) { - menuIcon = QPixmap::fromImage( menuIcon.toImage().scaled(width(), height())); + menuIcon.scaled(width(), height()); } bP.drawPixmap((width()-menuIcon.width())/2, (height()-menuIcon.height())/2, menuIcon); } diff --git a/clients/quartz/quartz.cpp b/clients/quartz/quartz.cpp index dd5a9453ee..85898811bb 100644 --- a/clients/quartz/quartz.cpp +++ b/clients/quartz/quartz.cpp @@ -494,7 +494,7 @@ void QuartzButton::drawButton(QPainter *p) if ( height() < 16) { // Smooth scale the image - QPixmap tmpPix = QPixmap::fromImage( btnpix.toImage().scaled(height(), height(), Qt::IgnoreAspectRatio,Qt::SmoothTransformation)); + QPixmap tmpPix ( btnpix.scaled(height(), height(), Qt::IgnoreAspectRatio,Qt::SmoothTransformation) ); p->drawPixmap( 0, 0, tmpPix ); } else { Offset += (height() - 16)/2;