2 #include <score/graphics/widgets/Constants.hpp>
4 #include <QGraphicsItem>
8 #include <score_lib_base_export.h>
17 ,
public QGraphicsItem
20 SCORE_GRAPHICS_ITEM_TYPE(30)
22 QRectF m_rect{defaultSliderSize};
32 template <std::
size_t N>
33 QGraphicsCombo(
const std::array<const char*, N>& arr, QGraphicsItem* parent)
44 array = std::move(arr);
49 void setRect(
const QRectF& r);
55 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
56 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
58 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
59 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
60 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
61 QRectF boundingRect()
const override;
62 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsCombo.hpp:18
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: QGraphicsCombo.cpp:94