2 #include <QDoubleSpinBox>
6 #include <score_lib_base_export.h>
9 class QStyleOptionFrame;
23 using spinbox_type = QSpinBox;
24 using value_type = int;
29 using spinbox_type = QDoubleSpinBox;
30 using value_type = float;
35 using spinbox_type = QDoubleSpinBox;
36 using value_type = double;
45 template <
typename SpinBox>
49 template <
typename... Args>
51 : SpinBox::spinbox_type{std::forward<Args>(args)...}
53 this->setMinimum(std::numeric_limits<typename SpinBox::value_type>::lowest());
54 this->setMaximum(std::numeric_limits<typename SpinBox::value_type>::max());
55 this->setAlignment(Qt::AlignRight);
58 void wheelEvent(QWheelEvent* event)
override {
event->ignore(); }
77 template <
typename... Args>
88 template <
typename... Args>
The MaxRangeSpinBox class.
Definition: SpinBoxes.hpp:47
The SpinBox class.
Definition: SpinBoxes.hpp:68
Base toolkit upon which the software is built.
Definition: Application.cpp:90
The TemplatedSpinBox class.
Definition: SpinBoxes.hpp:19