13 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
17 widget->setToolTip(QString::fromStdString(desc.toolTip));
19 QObject::connect(widget, SIGNAL(editingFinished()), stateChangeReceiver, stateChangeSlot);
31 return toUtf8(widget->text());
38 const QObject* stateChangeReceiver,
const char* stateChangeSlot)
42 widget->setToolTip(QString::fromStdString(desc.toolTip));
44 for (std::string
const&
option : desc.options)
50 QObject::connect(widget, SIGNAL(currentIndexChanged(
int)), stateChangeReceiver, stateChangeSlot);
61 widget->setCurrentIndex(
index);
65 throw LocalException() <<
"Invalid value set for ComboBox '"
66 << desc.name <<
"': " <<
value;
72 return toUtf8(widget->currentText());