3 #include <QDoubleSpinBox>
5 #pragma GCC diagnostic push
6 #pragma GCC diagnostic ignored "-Wpedantic"
7 #include <qwt_slider.h>
8 #pragma GCC diagnostic pop
19 #define cmp_or_log(l, c, r) \
21 : (out << " FAILED: " #l " " #c " " #r " " << VAROUT(l) << ", " << VAROUT(r) << '\n', \
31 const QObject* stateChangeReceiver,
32 const char* stateChangeSlot)
37 widget->setToolTip(QString::fromStdString(desc.toolTip));
38 widget->setMinimum(desc.min);
39 widget->setMaximum(desc.max);
40 widget->setDecimals(desc.decimals);
41 widget->setSingleStep((desc.max - desc.min) / desc.steps);
44 widget, SIGNAL(valueChanged(
double)), stateChangeReceiver, stateChangeSlot);
52 widget->setValue(
value);
58 return widget->value();
67 #define cmp_or_log(l, c, r) \
69 : (out << " FAILED: " #l " " #c " " #r " " << VAROUT(l) << ", " << VAROUT(r) << '\n', \
78 const QObject* stateChangeReceiver,
79 const char* stateChangeSlot)
84 widget->setToolTip(QString::fromStdString(desc.toolTip));
85 widget->setLowerBound(desc.min);
86 widget->setUpperBound(desc.max);
87 widget->setTotalSteps(desc.steps);
88 widget->setOrientation(Qt::Horizontal);
91 widget, SIGNAL(valueChanged(
double)), stateChangeReceiver, stateChangeSlot);
99 widget->setValue(
value);
105 return widget->value();