2 #include <score/graphics/widgets/Constants.hpp>
3 #include <score/graphics/widgets/QGraphicsSliderBase.hpp>
5 #include <QGraphicsItem>
8 #include <score_lib_base_export.h>
19 SCORE_GRAPHICS_ITEM_TYPE(60)
23 int m_value{}, m_execValue{};
28 int min{}, max{}, init{};
33 double from01(
double v)
const noexcept;
34 double unmap(
double v)
const noexcept;
35 double map(
double v)
const noexcept;
38 void setExecutionValue(
int v);
39 void resetExecution();
40 void setRange(
int min,
int max,
int init);
46 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
47 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
50 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
51 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
52 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
53 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
55 double getHandleX()
const;
56 double getExecHandleX()
const;
Definition: QGraphicsIntSlider.hpp:17
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DefaultControlImpl.hpp:10
Definition: DefaultGraphicsSliderImpl.hpp:31
Definition: QGraphicsSliderBase.hpp:17