[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Jul 15 18:02:02 CEST 2004


CVS commit by arwalker: 

Make the cursor switch to an arrow when over a legend in label mode. This provides the user feedback that the legend can be dragged. Bug 85222.


  M +3 -1      kst2dplot.cpp   1.149


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.148:1.149
@@ -2292,5 +2292,7 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
     setCursorForMode(view);
   } else if (_mouse.mode == LABEL_TOOL) {
-    if (labelNumber(e) < 0) {
+    if (legendUnder(e)) {
+      view->setCursor(QCursor(Qt::ArrowCursor));
+    } else if (labelNumber(e) < 0) {
       setCursorForMode(view, LABEL_TOOL);
     } else {





More information about the Kst mailing list