17#include "moc_qgslayoutviewtool.cpp"
34 const int diffX = endViewPoint.x() - startViewPoint.x();
35 const int diffY = endViewPoint.y() - startViewPoint.y();
36 return std::abs( diffX ) >= 2 || std::abs( diffY ) >= 2;
51 return QList<QgsLayoutItem *>();
125 mAction->setChecked(
true );
127 mView->viewport()->setCursor( mCursor );
134 mAction->setChecked(
false );
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView.
A graphical widget to display and interact with QgsLayouts.
QgsLayout * currentLayout
void willBeDeleted()
Emitted in the destructor when the view is about to be deleted, but is still in a perfectly valid sta...
void unsetTool(QgsLayoutViewTool *tool)
Unsets the current view tool, if it matches the specified tool.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.