[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu May 26 00:32:43 CEST 2005


SVN commit 418216 by arwalker:

Drag label and do not display plot dialog CCMAIL:106309-done at bugs.kde.org

 M  +8 -4      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #418215:418216
@@ -3949,12 +3949,16 @@
       }
       return;
     } else if (plot_and_axis_rect.contains(e->pos())) {
-      ParentApp->plotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
-      ParentApp->plotDialog()->TabWidget->setCurrentPage(LIMITS_TAB);
+      if (_draggableLabel == -1) {
+        ParentApp->plotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
+        ParentApp->plotDialog()->TabWidget->setCurrentPage(LIMITS_TAB);
+      }
       return;
     } else if (win_rect.contains(e->pos())) {
-      ParentApp->plotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
-      ParentApp->plotDialog()->TabWidget->setCurrentPage(LABELS_TAB);
+      if (_draggableLabel == -1) {
+        ParentApp->plotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
+        ParentApp->plotDialog()->TabWidget->setCurrentPage(LABELS_TAB);
+      }
       return;
     }
   } else if (e->button() == Qt::RightButton) {


More information about the Kst mailing list