36 ,
public QGraphicsItem
39 Q_INTERFACES(QGraphicsItem)
42 static bool g_cables_enabled;
45 QGraphicsItem* parent =
nullptr);
50 static const constexpr int Type = QGraphicsItem::UserType + 9999;
51 int type()
const final override {
return Type; }
65 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
66 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dropReceived, pos, arg_2)
69 QRectF boundingRect()
const override;
70 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
72 QPainterPath shape()
const override;
73 QPainterPath opaqueArea()
const override;
74 bool contains(
const QPointF& point)
const override;
75 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
76 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
77 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
78 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
79 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
80 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
81 void keyPressEvent(QKeyEvent* event)
override;
82 void keyReleaseEvent(QKeyEvent* event)
override;
85 void updateStroke()
const;
88 QPointer<PortItem> m_p1, m_p2;
90 mutable QPainterPath m_stroke;
91 Process::PortType m_type : 4 {};
92 bool m_dropping : 1 {};
93 CableDisplayMode m_mode : 2 {CableDisplayMode::None};
Definition ProcessContext.hpp:12