33   int diffX = endViewPoint.x() - startViewPoint.x();
 
   34   int diffY = endViewPoint.y() - startViewPoint.y();
 
   35   return std::abs( diffX ) >= 2 || std::abs( diffY ) >= 2;
 
   50   return QList<QgsLayoutItem *>();
 
  124     mAction->setChecked( 
true );
 
  126   mView->viewport()->setCursor( mCursor );
 
  133     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.