From 5f4822c3c641a706a20da22a75f763490118c0be Mon Sep 17 00:00:00 2001 From: Thorsten Roeder Date: Sat, 29 Apr 2006 09:21:48 +0000 Subject: [PATCH] fix my stupid commit from yesterday. thx. CCMAIL: Woebbeking@onlinehome.de svn path=/trunk/KDE/kdebase/workspace/; revision=535315 --- clients/default/kdedefault.cpp | 2 +- clients/plastik/plastikbutton.cpp | 2 +- clients/quartz/quartz.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/default/kdedefault.cpp b/clients/default/kdedefault.cpp index 62dfe612b3..2a80dd693e 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.scaled(12, 12); + btnpix = btnpix.scaled(12, 12); p->drawPixmap( 0, 0, btnpix ); } else diff --git a/clients/plastik/plastikbutton.cpp b/clients/plastik/plastikbutton.cpp index 111dc28530..dccffd3fc3 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.scaled(width(), height()); + menuIcon = 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 85898811bb..25054988c7 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 ( btnpix.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;