[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Jun 8 22:34:34 CEST 2004


CVS commit by staikos: 

minor datamode fixes


  M +6 -1      kst.cpp   1.142
  M +1 -1      kst2dplot.cpp   1.67


--- kdeextragear-2/kst/kst/kst.cpp  #1.141:1.142
@@ -79,4 +79,5 @@
 #include "kstviewscalarsdialog_i.h"
 #include "kstviewvectorsdialog_i.h"
+#include "kstviewwidget.h"
 #include "kstviewwindow.h"
 #include "pluginmanager.h"
@@ -1129,9 +1130,13 @@ bool KstApp::dataMode() const {
 void KstApp::toggleDataMode() {
   //DataMode->setChecked(!DataMode->isChecked());
+  KstTopLevelViewPtr pView = activeView();
+  if (pView) {
+    pView->widget()->paint();
+  }
 }
 
 
 void KstApp::toggleLayoutMode() {
-  KstTopLevelView* pView = activeView();
+  KstTopLevelViewPtr pView = activeView();
   if (pView) {
     pView->setViewMode(LayoutMode->isChecked() ? KstTopLevelView::LayoutMode : KstTopLevelView::DisplayMode);

--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.66:1.67
@@ -1889,5 +1889,5 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
       assert(newType != INACTIVE && newType != LABEL_TOOL);
     }
-  } else if (KstApp::inst()->dataMode()) {
+  } else if (KstApp::inst()->dataMode() && GetPlotRegion().contains(e->pos())) {
     double near_x, near_y;
     double newxpos = 0, newypos = 0;





More information about the Kst mailing list