25 static const constexpr int Type = ItemType::ScenarioProcess;
26 int type()
const final override {
return Type; }
30 void paint_impl(QPainter* painter)
const override;
32 void setSelectionArea(
const QRectF& rect)
38 void drawDragLine(QPointF, QPointF,
const QString&);
39 void stopDrawDragLine();
53 void pressedAsked(
const QPointF& p)
58 void movedAsked(
const QPointF& p);
60 void setSnapLine(std::optional<double>);
63 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
64 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
65 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
66 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
68 void keyPressEvent(QKeyEvent* event)
override;
69 void keyReleaseEvent(QKeyEvent* event)
override;
71 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
72 void dragMoveEvent(QGraphicsSceneDragDropEvent* event)
override;
73 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
74 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
78 QRectF m_selectArea{};
79 QPointF m_previousPoint{};
80 std::optional<QRectF> m_dragLine{};
81 std::optional<double> m_snapLine{};