[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Jun 11 00:55:52 CEST 2004


CVS commit by staikos: 

Make the keys bind as they did in the previous view code to avoid confusing
Barth. :-)  Also repair tied zoom after the last commit.


  M +10 -10    kst2dplot.cpp   1.83


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.82:1.83
@@ -1864,7 +1864,7 @@ bool Kst2DPlot::popupMenu(KPopupMenu *me
                         this, SLOT(xZoomMax()), CTRL + Key_M);
   submenu->insertItem(i18n("X-Zoom Out"),
-                        this, SLOT(xZoomOut()), SHIFT + Key_Left);
+                        this, SLOT(xZoomOut()), SHIFT + Key_Right);
   submenu->insertItem(i18n("X-Zoom In"),
-                        this, SLOT(xZoomIn()), SHIFT + Key_Right);
+                        this, SLOT(xZoomIn()), SHIFT + Key_Left);
   submenu->insertItem(i18n("Toggle Log X Axis"),
                         this, SLOT(xLogSlot()), Key_G);
@@ -1873,7 +1873,7 @@ bool Kst2DPlot::popupMenu(KPopupMenu *me
                         this, SLOT(yZoomMax()), SHIFT + Key_M);
   submenu->insertItem(i18n("Y-Zoom Out"),
-                        this, SLOT(yZoomOut()), SHIFT + Key_Down);
+                        this, SLOT(yZoomOut()), SHIFT + Key_Up);
   submenu->insertItem(i18n("Y-Zoom In"),
-                        this, SLOT(yZoomIn()), SHIFT + Key_Up);
+                        this, SLOT(yZoomIn()), SHIFT + Key_Down);
   submenu->insertItem(i18n("Toggle Log Y Axis"), this, SLOT(yLogSlot()), Key_L);
   submenu = new KPopupMenu(menu);
@@ -2909,5 +2909,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
     case Key_Left:
       if (s & Qt::ShiftButton) {
-        xZoomOut();
+        xZoomIn();
       } else {
         moveHorizontal(true);
@@ -2919,5 +2919,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
           if (p->isTied() && p.data() != this) {
             if (s & Qt::ShiftButton) {
-              p->xZoomOut();
+              p->xZoomIn();
             } else {
               p->moveHorizontal(true);
@@ -2936,5 +2936,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
     case Key_Right:
       if (s & Qt::ShiftButton) {
-        xZoomIn();
+        xZoomOut();
       } else {
         moveHorizontal(false);
@@ -2946,5 +2946,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
           if (p->isTied() && p.data() != this) {
             if (s & Qt::ShiftButton) {
-              p->xZoomIn();
+              p->xZoomOut();
             } else {
               p->moveHorizontal(false);
@@ -2963,5 +2963,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
     case Key_Up:
       if (s & Qt::ShiftButton) {
-        yZoomIn();
+        yZoomOut();
       } else {
         moveVertical(true);
@@ -2990,5 +2990,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
     case Key_Down:
       if (s & Qt::ShiftButton) {
-        yZoomOut();
+        yZoomIn();
       } else {
         moveVertical(false);





More information about the Kst mailing list