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