13 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
17 widget->setToolTip(QString::fromStdString(desc.toolTip));
20 QObject::connect(widget, SIGNAL(stateChanged(
int)), stateChangeReceiver, stateChangeSlot);
27 widget->setCheckState(
value ? Qt::Checked : Qt::Unchecked);
32 return widget->checkState() == Qt::Checked;
39 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
43 widget->setToolTip(QString::fromStdString(desc.toolTip));
45 widget->setCheckable(
true);
47 QObject::connect(widget, SIGNAL(toggled(
bool)), stateChangeReceiver, stateChangeSlot);
54 widget->setChecked(
value);
59 return widget->isChecked();