11 ,
public QGraphicsItem
18 void sizeChanged(QSizeF sz) E_SIGNAL(SCORE_LIB_BASE_EXPORT, sizeChanged, sz)
19 void childrenSizeChanged() E_SIGNAL(SCORE_LIB_BASE_EXPORT, childrenSizeChanged);
21 double minimumHeight()
const noexcept {
return m_minimumHeight; }
22 void setMinimumHeight(
double w);
23 void minimumHeightChanged(
double w)
24 E_SIGNAL(SCORE_LIB_BASE_EXPORT, minimumHeightChanged, w)
26 double minimumWidth()
const noexcept {
return m_minimumWidth; }
27 void setMinimumWidth(
double w);
28 void minimumWidthChanged(
double w)
29 E_SIGNAL(SCORE_LIB_BASE_EXPORT, minimumWidthChanged, w)
33 Type = UserType + 80000
35 int type()
const override;
38 double m_minimumHeight{};
39 double m_minimumWidth{};
45 Q_INTERFACES(QGraphicsItem)
47 using ResizeableItem::ResizeableItem;
50 void setRect(
const QRectF& r);
51 const QRectF& rect()
const noexcept {
return m_rect; }
52 void setHighlight(
bool);
53 QRectF boundingRect()
const final override;
54 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
59 Type = UserType + 80001
61 int type()
const override;
64 void clicked() E_SIGNAL(SCORE_LIB_BASE_EXPORT, clicked)
67 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
final override;
68 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
final override;
69 void mousePressEvent(QGraphicsSceneMouseEvent* event)
final override;
70 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
final override;
71 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
final override;
74 bool m_highlight{
false};
80 Q_INTERFACES(QGraphicsItem)
85 void setRect(
const QRectF& r);
86 const QRectF& rect()
const noexcept {
return m_rect; }
87 QRectF boundingRect()
const final override;
88 void fitChildrenRect();
89 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
94 Type = UserType + 80002
96 int type()
const override;
99 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
100 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
101 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
102 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
103 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;