[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/applets/blackboard
From:       Davide Bettio <davide.bettio () kdemail ! net>
Date:       2009-08-31 17:23:24
Message-ID: 1251739404.803599.32326.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1017846 by bettio:

The old qpixmap is copied into the new qpixmap when the plasmoid is resized.


 M  +2 -0      blackboardwidget.cpp  


--- trunk/playground/base/plasma/applets/blackboard/blackboardwidget.cpp #1017845:1017846
@@ -78,10 +78,12 @@
 
 void BlackBoardWidget::resizeEvent(QGraphicsSceneResizeEvent * event)
 {
+    QPixmap tmpPixmap = m_pixmap;
     p.end();
     m_pixmap = QPixmap(contentsRect().width(), contentsRect().height());
     m_pixmap.fill(Qt::transparent);
     p.begin(&m_pixmap);
+    p.drawPixmap(0, 0, tmpPixmap);
     p.setPen(QPen(m_color, 3));
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic