17#include "moc_qgsmodelviewtool.cpp"
27 connect( mView, &QgsModelGraphicsView::willBeDeleted,
this, [ = ]
35 const int diffX = endViewPoint.x() - startViewPoint.x();
36 const int diffY = endViewPoint.y() - startViewPoint.y();
37 return std::abs( diffX ) >= 2 || std::abs( diffY ) >= 2;
47 return qobject_cast< QgsModelGraphicsScene * >( mView->scene() );
53 mView->unsetTool(
this );
125 mAction->setChecked(
true );
127 mView->viewport()->setCursor( mCursor );
134 mAction->setChecked(
false );
A QgsModelViewMouseEvent is the result of a user interaction with the mouse on a QgsModelGraphicsView...