21#include "moc_qgslayoutviewtool.cpp"
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 mView->currentLayout();
52 return QList<QgsLayoutItem *>();
58 mView->unsetTool(
this );
125 mAction->setChecked(
true );
127 mView->viewport()->setCursor( mCursor );
134 mAction->setChecked(
false );
A mouse event which is the result of a user interaction with a QgsLayoutView.
A graphical widget to display and interact with QgsLayouts.
void willBeDeleted()
Emitted in the destructor when the view is about to be deleted, but is still in a perfectly valid sta...
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.