2 #include <score/graphics/widgets/Constants.hpp>
4 #include <QGraphicsItem>
7 #include <score_lib_base_export.h>
15 ,
public QGraphicsItem
18 SCORE_GRAPHICS_ITEM_TYPE(240)
19 QRectF m_rect{defaultToggleSize};
21 QString m_textToggled{};
22 QString m_textUntoggled{};
27 const QString& textUntoggled,
const QString& textToggled, QGraphicsItem* parent);
30 void setState(
bool toggled);
31 bool state()
const noexcept {
return m_toggled; }
33 void toggled(
bool arg_1) E_SIGNAL(SCORE_LIB_BASE_EXPORT, toggled, arg_1)
35 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
36 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
37 QRectF boundingRect()
const override;
38 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsToggle.hpp:16
Base toolkit upon which the software is built.
Definition: Application.cpp:90