21 : QMouseEvent( event->type(), event->pos(), event->button(), event->buttons(), event->modifiers() )
24 mModelPoint = mView->mapToScene( x(), y() );
26 if ( snap && mView->snapper() )
28 mSnappedPoint = mView->snapper()->snapPoint( mModelPoint, mView->transform().m11(), mSnapped );
32 mSnappedPoint = mModelPoint;
38 if ( mView->snapper() )
40 mSnappedPoint = mView->snapper()->snapPoint( mModelPoint, mView->transform().m11(), mSnapped );
QgsModelViewMouseEvent(QgsModelGraphicsView *view, QMouseEvent *event, bool snaps)
Constructor for QgsModelViewMouseEvent.
void snapPoint()
Manually triggers a snap for the mouse event position using the model's snapper.
QPointF modelPoint() const
Returns the event point location in model coordinates.