[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Sat Dec 18 00:34:03 CET 2004


CVS commit by staikos: 

revert the datamode "fix" again


  M +1 -10     kst2dplot.cpp   1.335


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.334:1.335
@@ -1949,5 +1949,5 @@ void Kst2DPlot::paint(KstPaintType type,
     updateTieBox(p);
 
-    // we might need to draw the datamode marker.
+    // we might need to redraw the datamode marker.
     if (!_highlighting) {
       KstTopLevelViewPtr tlv = KstApp::inst()->activeView();
@@ -3154,10 +3154,7 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
       w->viewObject()->forEachChild<QPainter&>(&KstViewObject::removeFocus, p);
     }
-    _mouse.lastLocation = e->pos();
     setHasFocus(true);
     p.setClipRegion(_lastClipRegion);
     updateTieBox(p);
-  } else {
-    _mouse.lastLocation = e->pos();
   }
 
@@ -4542,8 +4539,5 @@ void Kst2DPlot::dropEvent(QWidget *view,
               QPainter p(view);
               w->view()->forEachChild<QPainter&>(&Kst2DPlot::removeFocus, p);
-              _mouse.lastLocation = e->pos();
               setHasFocus(true);
-            } else {
-              _mouse.lastLocation = e->pos();
             }
 
@@ -4584,8 +4578,5 @@ void Kst2DPlot::dropEvent(QWidget *view,
               QPainter p(view);
               w->view()->forEachChild<QPainter&>(&Kst2DPlot::removeFocus, p);
-              _mouse.lastLocation = e->pos();
               setHasFocus(true);
-            } else {
-              _mouse.lastLocation = e->pos();
             }
             setDirty();





More information about the Kst mailing list