[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed Nov 23 22:41:59 CET 2005


SVN commit 482718 by staikos:

add a couple new debug messages (sorry, removed the last ones in viewwidget)
and move the giudeline drawing out of the way of EXPORT and PRINT paint events
since it doesn't belong there


 M  +9 -6      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #482717:482718
@@ -2193,6 +2193,7 @@
     p.restore();
   } else {
     if (_zoomPaused) {
+      kstdDebug() << tagName() << " ZOOM PAUSED" << endl;
       return;
     }
     // check for optimizations
@@ -2228,6 +2229,7 @@
     _oldAlignment = alignment;
     _oldSize = sizeNew;
 
+    kstdDebug() << " -> paint plot " << tagName() << " with clipRegion: " << p.clipRegion() << endl;
     _buffer.paintInto(p, geometry());
     drawCursorPos(p);
     updateTieBox(p);
@@ -2246,14 +2248,15 @@
         }
       }
     }
+
+    // FIXME: this view code is -broken-
+    KstMouseModeType gzType = globalZoomType();
+    if (gzType == X_ZOOMBOX || gzType == Y_ZOOMBOX) {
+      updateXYGuideline(KstApp::inst()->activeView()->widget(), QPoint(-1, -1), KstApp::inst()->activeView()->widget()->mapFromGlobal(QCursor::pos()), GetPlotRegion(), gzType);
+      _mouse.lastGuideline = KstApp::inst()->activeView()->widget()->mapFromGlobal(QCursor::pos());
+    }
   }
 
-  // FIXME: this view code is -broken-
-  KstMouseModeType gzType = globalZoomType();
-  if (gzType == X_ZOOMBOX || gzType == Y_ZOOMBOX) {
-    updateXYGuideline(KstApp::inst()->activeView()->widget(), QPoint(-1, -1), KstApp::inst()->activeView()->widget()->mapFromGlobal(QCursor::pos()), GetPlotRegion(), gzType);
-    _mouse.lastGuideline = KstApp::inst()->activeView()->widget()->mapFromGlobal(QCursor::pos());
-  }
   KstPlotBase::paint(type, p, bounds);
 }
 


More information about the Kst mailing list