[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri May 28 10:56:13 CEST 2004
CVS commit by staikos:
hook in several more zooming accelerators
M +28 -3 kst2dplot.cpp 1.39
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.38:1.39
@@ -2226,8 +2226,33 @@ void Kst2DPlot::setCursorForMode(QWidget
void Kst2DPlot::keyReleaseEvent(QWidget *view, QKeyEvent *e) {
- if (e->key() == Key_R) {
+ bool handled = true;
+ switch (e->key()) {
+ case Key_A:
+ setYScaleMode(AC);
+ pushScale();
+ static_cast<KstViewWidget*>(view)->paint();
+ break;
+ case Key_M:
+ setXScaleMode(AUTO);
+ setYScaleMode(AUTO);
+ pushScale();
+ static_cast<KstViewWidget*>(view)->paint();
+ break;
+ case Key_R:
if (popScale()) {
static_cast<KstViewWidget*>(view)->paint();
}
+ break;
+ case Key_S:
+ setXScaleMode(NOSPIKE);
+ setYScaleMode(NOSPIKE);
+ pushScale();
+ static_cast<KstViewWidget*>(view)->paint();
+ break;
+ default:
+ handled = false;
+ }
+
+ if (handled) {
e->accept();
return;
More information about the Kst
mailing list