31 Q_INTERFACES(QGraphicsItem)
33 using ResizeableItem::ResizeableItem;
36 void setRect(
const QRectF& r);
37 const QRectF& rect()
const noexcept {
return m_rect; }
38 void setHighlight(
bool);
39 QRectF boundingRect()
const final override;
40 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
45 Type = UserType + 80001
47 int type()
const override;
50 void clicked() E_SIGNAL(SCORE_LIB_BASE_EXPORT, clicked)
53 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
final override;
54 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
final override;
55 void mousePressEvent(QGraphicsSceneMouseEvent* event)
final override;
56 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
final override;
57 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
final override;
60 bool m_highlight{
false};
66 Q_INTERFACES(QGraphicsItem)
71 void setRect(
const QRectF& r);
72 const QRectF& rect()
const noexcept {
return m_rect; }
73 QRectF boundingRect()
const final override;
74 void fitChildrenRect();
75 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
80 Type = UserType + 80002
82 int type()
const override;
85 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
86 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
87 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
88 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
89 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;