[Kst] kdeextragear-2/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Fri Jun 11 00:45:09 CEST 2004
CVS commit by rchern:
Make x-zoom and y-zoom shortcut keys consistent with actual zoom
M +6 -6 kst2dplot.cpp 1.82
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.81:1.82
@@ -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_Right);
+ this, SLOT(xZoomOut()), SHIFT + Key_Left);
submenu->insertItem(i18n("X-Zoom In"),
- this, SLOT(xZoomIn()), SHIFT + Key_Left);
+ this, SLOT(xZoomIn()), SHIFT + Key_Right);
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_Up);
+ this, SLOT(yZoomOut()), SHIFT + Key_Down);
submenu->insertItem(i18n("Y-Zoom In"),
- this, SLOT(yZoomIn()), SHIFT + Key_Down);
+ this, SLOT(yZoomIn()), SHIFT + Key_Up);
submenu->insertItem(i18n("Toggle Log Y Axis"), this, SLOT(yLogSlot()), Key_L);
submenu = new KPopupMenu(menu);
@@ -2963,5 +2963,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
case Key_Up:
if (s & Qt::ShiftButton) {
- yZoomOut();
+ yZoomIn();
} else {
moveVertical(true);
@@ -2990,5 +2990,5 @@ void Kst2DPlot::keyPressEvent(QWidget *v
case Key_Down:
if (s & Qt::ShiftButton) {
- yZoomIn();
+ yZoomOut();
} else {
moveVertical(false);
More information about the Kst
mailing list