15 const QObject* stateChangeReceiver,
16 const char* stateChangeSlot)
20 widget->setToolTip(QString::fromStdString(desc.toolTip));
23 widget, SIGNAL(editingFinished()), stateChangeReceiver, stateChangeSlot);
37 return toUtf8(widget->text());
46 const QObject* stateChangeReceiver,
47 const char* stateChangeSlot)
51 widget->setToolTip(QString::fromStdString(desc.toolTip));
53 for (std::string
const&
option : desc.options)
60 widget, SIGNAL(currentIndexChanged(
int)), stateChangeReceiver, stateChangeSlot);
72 widget->setCurrentIndex(
index);
76 throw LocalException()
77 <<
"Invalid value set for ComboBox '" << desc.name <<
"': " <<
value;
84 return toUtf8(widget->currentText());