2 #include <score/graphics/widgets/Constants.hpp>
3 #include <score/widgets/Pixmap.hpp>
5 #include <QGraphicsItem>
6 #include <QGraphicsPixmapItem>
9 #include <score_lib_base_export.h>
19 ,
public QGraphicsPixmapItem
22 SCORE_GRAPHICS_ITEM_TYPE(170)
24 const QPixmap m_pressed, m_pressed_selected, m_released, m_released_selected;
30 QPixmap pressed, QPixmap pressed_selected, QPixmap released,
31 QPixmap released_selected, QGraphicsItem* parent);
34 void setSelected(
bool selected);
35 void setState(
bool toggled);
37 bool state()
const noexcept {
return m_toggled; }
40 void toggled(
bool arg_1) E_SIGNAL(SCORE_LIB_BASE_EXPORT, toggled, arg_1)
43 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
44 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
45 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
50 ,
public QGraphicsPixmapItem
53 SCORE_GRAPHICS_ITEM_TYPE(180)
55 const QPixmap m_pressed, m_pressed_selected, m_released, m_released_selected;
60 std::function<void(QMimeData&)> createDrag;
61 std::function<void(QPointF)> click;
64 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
65 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
66 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
Definition: QGraphicsSelectablePixmapToggle.hpp:51
Definition: QGraphicsSelectablePixmapToggle.hpp:20
Base toolkit upon which the software is built.
Definition: Application.cpp:90