Center flashed pixmap.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690856
This commit is contained in:
Andre Duffeck 2007-07-22 11:37:21 +00:00
parent b58baaef6b
commit 4798c5e3a8

View File

@ -172,7 +172,7 @@ QPixmap Flash::renderPixmap()
painter.setFont( d->font );
painter.drawText( QRect( 0, 0, pm.width(), pm.height() ), d->text, Qt::AlignHCenter | Qt::AlignVCenter);
} else if( d->type == Private::Pixmap ) {
painter.drawPixmap( QPoint( 0, 0 ), d->pixmap );
painter.drawPixmap( QPoint( (pm.width() - d->pixmap.width())/2, (pm.height() - d->pixmap.height())/2 ), d->pixmap );
}
return pm;
}