QwtScaleMap yMap2 = myPlot->canvasMap( QwtPlot::yRight );
myYDistance2 = yMap2.s2() - yMap2.s1();
}
- qApp->installEventFilter( this );
+ myPlot->canvas()->installEventFilter( this );
}
/*!
Destructor
QMouseEvent m( QEvent::MouseButtonPress, me->pos(), me->button(),
me->buttons(), me->modifiers() );
plotMousePressed( m );
- //return true;
}
break;
}
QMouseEvent m( QEvent::MouseButtonRelease, me->pos(), me->button(),
me->buttons(), me->modifiers() );
plotMouseReleased( m );
- //return true;
}
break;
}
: QwtPlot( parent ),
myIsPolished( false )
{
-
myPlotZoomer = new Plot2d_QwtPlotZoomer( QwtPlot::xBottom, QwtPlot::yLeft, canvas() );
myPlotZoomer->setSelectionFlags( QwtPicker::DragSelection | QwtPicker::CornerToCorner );
myPlotZoomer->setTrackerMode( QwtPicker::AlwaysOff );
myGrid->attach( this );
setMouseTracking( false );
- canvas()->setMouseTracking( false );
+ canvas()->setMouseTracking( true );
myPlotZoomer->setEnabled( true );
}