[Kde-games-devel] KDE/kdegames/kwin4/src

Mauricio Piacentini mauricio at tabuleiro.com
Mon Jul 2 01:20:55 CEST 2007


SVN commit 682182 by piacentini:

Remove QGV 4.2 temporary  hack, now that we have newer methods in QGV 4.3 that 
allow finer control of update algorithms.
CCMAIL: kde at heni-online.de
CCMAIL: kde-games-devel at kde.org


 M  +1 -9      kwin4view.cpp  
 M  +0 -4      kwin4view.h  


--- trunk/KDE/kdegames/kwin4/src/kwin4view.cpp #682181:682182
@@ -41,15 +41,6 @@
 #include "spritenotify.h"
 #include "score.h"
 
-
-// Our subclassed (temporary) QGraphicsView paintEvent, see header file
-void KWin4View::paintEvent(QPaintEvent* event)
-{
-    QPaintEvent* newEvent = new QPaintEvent(event->region().boundingRect());
-    QGraphicsView::paintEvent(newEvent);
-    delete newEvent;
-}
-
 // Constructor for the view
 KWin4View::KWin4View(const QSize &size, int advancePeriod, QGraphicsScene* scene, ThemeManager* theme, QWidget* parent)
           : QGraphicsView(scene, parent)
@@ -64,6 +55,7 @@
   setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
   setFrameStyle(QFrame::NoFrame);
   setCacheMode(QGraphicsView::CacheBackground);
+  setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
   viewport()->setMouseTracking(true);
 
   // Choose a background color
--- trunk/KDE/kdegames/kwin4/src/kwin4view.h #682181:682182
@@ -150,10 +150,6 @@
      * @param e The resize event
      */
     void resizeEvent(QResizeEvent* e);
-    /** Paint function for the widget, temporary fix while we wait for QGV 4.3
-      * @param event The paint event
-      */
-    void paintEvent(QPaintEvent* event);
 
     virtual bool viewportEvent ( QEvent * event )  ;
 


More information about the kde-games-devel mailing list