mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
libs: avoid temporary in Oxygen::TileSet::initPixmap()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c6fb7dcf90
commit
fbc9090815
1 changed files with 1 additions and 2 deletions
|
@ -38,12 +38,11 @@ namespace Oxygen
|
|||
|
||||
} else if( size != rect.size() ) {
|
||||
|
||||
const QPixmap tile( pix.copy(rect) );
|
||||
QPixmap pixmap( w, h );
|
||||
|
||||
pixmap.fill(Qt::transparent);
|
||||
QPainter p(&pixmap);
|
||||
p.drawTiledPixmap(0, 0, w, h, tile);
|
||||
p.drawTiledPixmap(0, 0, w, h, pix.copy(rect));
|
||||
|
||||
pixmaps.push_back( pixmap );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue