16#ifndef QGSMODELVIEWMOUSEEVENT_H
17#define QGSMODELVIEWMOUSEEVENT_H
25class QgsModelGraphicsView;
73 QgsModelGraphicsView *mView =
nullptr;
76 bool mSnapped =
false;
77 QPointF mSnappedPoint;
QgsModelViewMouseEvent(QgsModelGraphicsView *view, QMouseEvent *event, bool snaps)
Constructor for QgsModelViewMouseEvent.
bool isSnapped() const
Returns true if point was snapped, e.g.
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.
QPointF snappedPoint() const
Returns the snapped event point location in model coordinates.