[kgraphviewer-devel] extragear/graphics/kgraphviewer/src/part

Milian Wolff mail at milianw.de
Wed Jul 7 12:29:56 CEST 2010


SVN commit 1147056 by mwolff:

set optimization flags, this is good practice. remove if there are graphic regressions found (none for me)

 M  +4 -0      dotgraphview.cpp  
 M  +4 -0      pannerview.cpp  


--- trunk/extragear/graphics/kgraphviewer/src/part/dotgraphview.cpp #1147055:1147056
@@ -114,6 +114,10 @@
   m_birdEyeView = new PannerView(this);
   m_cvZoom = 1;
 
+  // if there are ever graphic glitches to be found, remove this again
+  setOptimizationFlags(QGraphicsView::DontAdjustForAntialiasing | QGraphicsView::DontClipPainter |
+                        QGraphicsView::DontSavePainterState);
+
   setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
   setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
   
--- trunk/extragear/graphics/kgraphviewer/src/part/pannerview.cpp #1147055:1147056
@@ -58,6 +58,10 @@
   // viewport()->setBackgroundMode(Qt::NoBackground);
   setBackgroundMode(Qt::NoBackground);
 
+  // if there are ever graphic glitches to be found, remove this again
+  setOptimizationFlags(QGraphicsView::DontAdjustForAntialiasing | QGraphicsView::DontClipPainter |
+                        QGraphicsView::DontSavePainterState);
+
   setToolTip(i18n("View of the complete graph. Click and drag to move the visible part."));
   setWhatsThis(i18n("<h1>View of the Complete Graph</h1>"
     "<p>Single clicking somewhere without the red square will move the center of the "


More information about the kgraphviewer-devel mailing list