Change trainer checkbox to a combobox

This commit is contained in:
Marcus Huderle
2019-01-20 10:42:01 -06:00
parent 2f21465d8d
commit 228b646b0e
4 changed files with 31 additions and 21 deletions

View File

@@ -233,6 +233,12 @@ public:
}
});
}
void bindToUserData(QComboBox *combo, QString key) {
connect(combo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, [this, combo, key](int index) {
this->event->put(key, combo->itemData(index).toString());
});
}
signals:
void positionChanged(Event *event);