14 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
19 widget->setToolTip(QString::fromStdString(desc.toolTip));
20 widget->setMinimum(desc.min);
21 widget->setMaximum(desc.max);
23 QObject::connect(widget, SIGNAL(valueChanged(
int)), stateChangeReceiver, stateChangeSlot);
30 widget->setValue(
value);
35 return widget->value();
42 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
47 widget->setToolTip(QString::fromStdString(desc.toolTip));
48 widget->setOrientation(Qt::Horizontal);
50 widget->setMinimum(desc.min);
51 widget->setMaximum(desc.max);
53 QObject::connect(widget, SIGNAL(valueChanged(
int)), stateChangeReceiver, stateChangeSlot);
60 widget->setValue(
value);
65 return widget->value();
72 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
76 widget->setToolTip(QString::fromStdString(desc.toolTip));
79 QObject::connect(widget, SIGNAL(clicked()), stateChangeReceiver, stateChangeSlot);
86 widget->setProperty(
"ClickCount", QVariant(
value));
91 int newValue = widget->property(
"ClickCount").toInt() + 1;
92 widget->setProperty(
"ClickCount", QVariant(newValue));