2 #include <score/graphics/widgets/Constants.hpp>
4 #include <QGraphicsItem>
7 #include <score_lib_base_export.h>
16 ,
public QGraphicsItem
19 SCORE_GRAPHICS_ITEM_TYPE(40)
27 int m_actualColumns{1};
30 std::vector<QString> array;
34 template <std::
size_t N>
35 QGraphicsEnum(
const std::array<const char*, N>& arr, QGraphicsItem* parent)
43 QGraphicsEnum(std::vector<QString> arr, QGraphicsItem* parent)
46 array = std::move(arr);
52 void setRect(
const QRectF& r);
53 void setOneLineRect();
54 void setValue(int32_t v);
56 QRectF boundingRect()
const override;
59 void currentIndexChanged(
int arg_1)
60 E_SIGNAL(SCORE_LIB_BASE_EXPORT, currentIndexChanged, arg_1)
63 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
64 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
65 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
67 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsEnum.hpp:17
Base toolkit upon which the software is built.
Definition: Application.cpp:90