2 #include <QGraphicsItem>
4 #include <score_lib_base_export.h>
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);
23 Type = UserType + 80000
25 int type()
const override;
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;
101 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
103 void setRect(
const QRectF& r);
104 const QRectF& rect()
const noexcept {
return m_rect; }
105 QRectF boundingRect()
const final override;
107 void fitChildrenRect();
111 Type = UserType + 80003
113 int type()
const override;
116 void mousePressEvent(QGraphicsSceneMouseEvent* event)
final override;
117 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
final override;
118 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
final override;
122 class SCORE_LIB_BASE_EXPORT
EmptyItem final :
public QGraphicsItem
125 explicit EmptyItem(QGraphicsItem* parent);
130 Type = UserType + 80004
132 int type()
const override;
135 QRectF boundingRect()
const override;
136 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: RectItem.hpp:96
Definition: RectItem.hpp:123
Definition: RectItem.hpp:64
Definition: RectItem.hpp:29
Definition: RectItem.hpp:12
Base toolkit upon which the software is built.
Definition: Application.cpp:90