17 #ifndef QGSMODELVIEWMOUSEHANDLES_H
18 #define QGSMODELVIEWMOUSEHANDLES_H
28 class QgsModelGraphicsView;
29 class QgsModelGraphicsScene;
46 class GUI_EXPORT QgsModelViewMouseHandles:
public QgsGraphicsViewMouseHandles
51 QgsModelViewMouseHandles( QgsModelGraphicsView *view );
53 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget =
nullptr )
override;
57 void setViewportCursor( Qt::CursorShape cursor )
override;
58 QList<QGraphicsItem *> sceneItemsAtPoint( QPointF scenePoint )
override;
59 QList<QGraphicsItem *> selectedSceneItems(
bool includeLockedItems =
true )
const override;
60 QRectF itemRect( QGraphicsItem *item )
const override;
61 QRectF storedItemRect( QGraphicsItem *item )
const override;
62 void moveItem( QGraphicsItem *item,
double deltaX,
double deltaY )
override;
63 void previewItemMove( QGraphicsItem *item,
double deltaX,
double deltaY )
override;
64 void setItemRect( QGraphicsItem *item, QRectF rect )
override;
65 QRectF previewSetItemRect( QGraphicsItem *item, QRectF rect )
override;
66 void startMacroCommand(
const QString &text )
override;
67 void endMacroCommand()
override;
68 QPointF snapPoint( QPointF originalPoint, SnapGuideMode mode,
bool snapHorizontal =
true,
bool snapVertical =
true )
override;
73 void selectionChanged();
76 QgsModelGraphicsScene *modelScene()
const;
78 QPointer< QgsModelGraphicsView > mView;
Base class for graphical items within a QgsLayout.