[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Mon Jun 28 03:58:38 CEST 2004
CVS commit by staikos:
dead code removal
M +1 -31 kst2dplot.cpp 1.112
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.111:1.112
@@ -2049,14 +2049,5 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
QRect pr = GetPlotRegion();
if (e->state() & Qt::LeftButton && _mouse.zooming()) {
-/*
- if (e->state() & Qt::ShiftButton) {
- newType = Y_ZOOMBOX;
- } else if (e->state() & Qt::ControlButton) {
- newType = X_ZOOMBOX;
- } else {
- newType = globalZoomType();
- assert(newType != INACTIVE && newType != LABEL_TOOL);
- }
-*/
+ // LEAVE BLANK
} else if (KstApp::inst()->dataMode() && pr.contains(e->pos())) {
double near_x, near_y;
@@ -2543,15 +2534,4 @@ void Kst2DPlot::keyReleaseEvent(QWidget
QRect pr = GetPlotRegion();
int x = _mouse.pressLocation.x(), y = _mouse.pressLocation.y();
-/*
- ButtonState s = e->stateAfter();
- if (s & Qt::ShiftButton) {
- newType = Y_ZOOMBOX;
- } else if (s & Qt::ControlButton) {
- newType = X_ZOOMBOX;
- } else {
- newType = globalZoomType();
- assert(newType != INACTIVE && newType != LABEL_TOOL);
- }
-*/
if (newType == Y_ZOOMBOX) {
@@ -3189,14 +3169,4 @@ void Kst2DPlot::keyPressEvent(QWidget *v
if (_mouse.zooming()) {
KstMouseModeType newType = _mouse.mode;
-/*
- if (s & Qt::ShiftButton) {
- newType = Y_ZOOMBOX;
- } else if (s & Qt::ControlButton) {
- newType = X_ZOOMBOX;
- } else {
- newType = globalZoomType();
- assert(newType != INACTIVE && newType != LABEL_TOOL);
- }
-*/
if (e->key() == Qt::Key_Escape) {
More information about the Kst
mailing list