isis/src/qisis/objs/ScatterPlotTool/ScatterPlotWindow.cpp
bool ScatterPlotWindow::eventFilter(QObject *o, QEvent *e) {
    if (o == plot()->canvas()) {
      switch (e->type()) {
        case QEvent::MouseMove: {
          if (((QMouseEvent *)e)->buttons() == Qt::NoButton)
            mouseMoveEvent((QMouseEvent *)e);
          break;
        }
        case QEvent::Leave: {
          mouseLeaveEvent((QMouseEvent *)e);
          break;
        }
        default:
          break;
      }

      return false;
    }
    else {
      return PlotWindow::eventFilter(o, e);
    }
  }
/**
   * We override events done on the plot canvas for alarming purposes. This
   *   method will forward mouse moves and leaves to the appropriate methods.
   *
   * @param o The object on which the event happened
   * @param e The event that triggered this method call
   * @return True if no more processing should happen with this event
   */
We override events done on the plot canvas for alarming purposes. This
method will forward mouse moves and leaves to the appropriate methods.

@param o The object on which the event happened
@param e The event that triggered this method call
@return True if no more processing should happen with this event
We override events done on the plot canvas for alarming purposes . This method will forward mouse moves and leaves to the appropriate methods . @param o The object on which the event happened @param e The event that triggered this method call @return True if no more processing should happen with this event
bool ScatterPlotWindow::eventFilter(QObject *o, QEvent *e) {
    if (o == plot()->canvas()) {
      switch (e->type()) {
        case QEvent::MouseMove: {
          if (((QMouseEvent *)e)->buttons() == Qt::NoButton)
            mouseMoveEvent((QMouseEvent *)e);
          break;
        }
        case QEvent::Leave: {
          mouseLeaveEvent((QMouseEvent *)e);
          break;
        }
        default:
          break;
      }
      return false;
    }
    else {
      return PlotWindow::eventFilter(o, e);
    }
  }
bool ScatterPlotWindow :: eventFilter ( QObject * o , QEvent * e ) { if ( o == plot ( ) -> canvas ( ) ) { switch ( e -> type ( ) ) { case QEvent :: MouseMove : { if ( ( ( QMouseEvent * ) e ) -> buttons ( ) == Qt :: NoButton ) mouseMoveEvent ( ( QMouseEvent * ) e ) ; break ; } case QEvent :: Leave : { mouseLeaveEvent ( ( QMouseEvent * ) e ) ; break ; } default : break ; } return false ; } else { return PlotWindow :: eventFilter ( o , e ) ; } }
We override events done on the plot canvas for alarming purposes.
We override events done on the plot canvas for alarming purposes .