22#include "moc_qgsmodelviewtool.cpp"
29 connect( mView, &QgsModelGraphicsView::willBeDeleted,
this, [
this] {
36 const int diffX = endViewPoint.x() - startViewPoint.x();
37 const int diffY = endViewPoint.y() - startViewPoint.y();
38 return std::abs( diffX ) >= 2 || std::abs( diffY ) >= 2;
48 return qobject_cast<QgsModelGraphicsScene *>( mView->scene() );
54 mView->unsetTool(
this );
126 mAction->setChecked(
true );
128 mView->viewport()->setCursor( mCursor );
135 mAction->setChecked(
false );
A mouse event which is the result of a user interaction with a QgsModelGraphicsView.