fix my stupid commit from yesterday.

thx.

CCMAIL: Woebbeking@onlinehome.de

svn path=/trunk/KDE/kdebase/workspace/; revision=535315
This commit is contained in:
Thorsten Roeder 2006-04-29 09:21:48 +00:00
parent 86d995aec4
commit 5f4822c3c6
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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);
}

View file

@ -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;