20 ,
public QGraphicsItem
23 Q_INTERFACES(QGraphicsItem)
27 static const constexpr int Type = ItemType::Trigger;
28 int type()
const final override {
return Type; }
30 void setSelected(
bool b)
noexcept;
36 void pressed(QPointF arg_1) W_SIGNAL(pressed, arg_1);
38 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
39 W_SIGNAL(dropReceived, pos, arg_2);
41 QRectF boundingRect()
const override;
44 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
46 bool contains(
const QPointF& point)
const override;
48 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
49 void mousePressEvent(QGraphicsSceneMouseEvent*)
override;
50 void mouseMoveEvent(QGraphicsSceneMouseEvent*)
override;
51 void mouseReleaseEvent(QGraphicsSceneMouseEvent*)
override;
53 void hoverEnterEvent(QGraphicsSceneHoverEvent*)
override;
54 void hoverLeaveEvent(QGraphicsSceneHoverEvent*)
override;
56 const QPixmap& currentPixmap()
const noexcept;
59 int m_frameDirection{};