Center flashed pixmap.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=690856
This commit is contained in:
parent
b58baaef6b
commit
4798c5e3a8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user