16#ifndef QGSLAYOUTVIEWTOOL_H
17#define QGSLAYOUTVIEWTOOL_H
51 sipType = sipType_QgsLayoutViewToolAddItem;
66 Q_DECLARE_FLAGS( Flags, Flag )
74 QgsLayoutViewTool::Flags flags()
const;
107 virtual void wheelEvent( QWheelEvent *event );
112 virtual void keyPressEvent( QKeyEvent *event );
117 virtual void keyReleaseEvent( QKeyEvent *event );
126 void setAction( QAction *action );
137 void setCursor(
const QCursor &cursor );
143 virtual void activate();
149 virtual void deactivate();
172 virtual QList< QgsLayoutItem * > ignoredSnapItems()
const;
198 void setFlags( QgsLayoutViewTool::Flags flags );
212 bool isClickAndDrag( QPoint startViewPoint, QPoint endViewPoint )
const;
219 QgsLayoutViewTool::Flags mFlags = QgsLayoutViewTool::Flags();
222 QCursor mCursor = Qt::ArrowCursor;
225 QPointer< QAction > mAction;
230 friend class TestQgsLayoutView;
Base class for graphical items within a QgsLayout.
A QgsLayoutViewMouseEvent is the result of a user interaction with the mouse on a QgsLayoutView.
A graphical widget to display and interact with QgsLayouts.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
#define SIP_ENUM_BASETYPE(type)