mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-12 02:45:40 -05:00
Bind to all event combobox value changes
This commit is contained in:
2
editor.h
2
editor.h
@@ -173,7 +173,7 @@ public:
|
||||
emit spriteChanged(event->pixmap);
|
||||
}
|
||||
void bind(QComboBox *combo, QString key) {
|
||||
connect(combo, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::activated),
|
||||
connect(combo, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentTextChanged),
|
||||
this, [this, key](QString value){
|
||||
this->event->put(key, value);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user