23 : QMouseEvent( event->type(), event->pos(), event->button(), event->buttons(), event->modifiers() )
26 mLayoutPoint = mView->mapToScene( x(), y() );
27 if ( snap && mView->currentLayout() )
29 mSnappedPoint = mView->currentLayout()->snapper().snapPoint( mLayoutPoint, mView->transform().m11(), mSnapped );
33 mSnappedPoint = mLayoutPoint;
39 if ( mView->currentLayout() )
41 mSnappedPoint = mView->currentLayout()->snapper().snapPoint( mLayoutPoint, mView->transform().m11(), mSnapped, horizontalSnapLine, verticalSnapLine, &excludeItems );
void snapPoint(QGraphicsLineItem *horizontalSnapLine=nullptr, QGraphicsLineItem *verticalSnapLine=nullptr, const QList< QgsLayoutItem * > &ignoreItems=QList< QgsLayoutItem * >())
Manually triggers a snap for the mouse event position using the layout's snapper.