![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <labeledcontrols.h>
Signals | |
| void | currentIndexChanged (int idx) |
Public Member Functions | |
| LabeledCombo (const QString &labelText, QWidget *parent=nullptr) | |
| void | addItem (const QString &text, const QVariant &data={}) |
| int | currentIndex () const |
| QVariant | currentData () const |
| void | setCurrentIndex (int idx) |
| void | setCurrentData (const QVariant &data) |
| QComboBox * | combo () const |
Label + QComboBox pair. Items are added via addItem(text, data) in insertion order — concrete editors typically map an engine enum value to a user-facing label and pass the enum integer as data.
|
explicit |
| void LabeledCombo::addItem | ( | const QString & | text, |
| const QVariant & | data = {} |
||
| ) |
|
inline |
| QVariant LabeledCombo::currentData | ( | ) | const |
| int LabeledCombo::currentIndex | ( | ) | const |
|
signal |
| void LabeledCombo::setCurrentData | ( | const QVariant & | data | ) |
Select the item whose data() equals data, or no-op if none match.
| void LabeledCombo::setCurrentIndex | ( | int | idx | ) |