16 #ifndef QGSLAYOUTVIEWTOOL_H
17 #define QGSLAYOUTVIEWTOOL_H
52 sipType = sipType_QgsLayoutViewToolAddItem;
67 Q_DECLARE_FLAGS( Flags, Flag )
75 QgsLayoutViewTool::Flags flags()
const;
108 virtual void wheelEvent( QWheelEvent *event );
113 virtual void keyPressEvent( QKeyEvent *event );
118 virtual void keyReleaseEvent( QKeyEvent *event );
127 void setAction( QAction *action );
138 void setCursor(
const QCursor &cursor );
144 virtual void activate();
150 virtual void deactivate();
173 virtual QList< QgsLayoutItem * > ignoredSnapItems()
const;
199 void setFlags( QgsLayoutViewTool::Flags flags );
213 bool isClickAndDrag( QPoint startViewPoint, QPoint endViewPoint )
const;
220 QgsLayoutViewTool::Flags mFlags = QgsLayoutViewTool::Flags();
223 QCursor mCursor = Qt::ArrowCursor;
226 QPointer< QAction > mAction;
231 friend class TestQgsLayoutView;
235 #endif // QGSLAYOUTVIEWTOOL_H