Bind to all event combobox value changes
This commit is contained in:
parent
ecce7d26f2
commit
fc0cf133b2
1 changed files with 1 additions and 1 deletions
2
editor.h
2
editor.h
|
@ -173,7 +173,7 @@ public:
|
||||||
emit spriteChanged(event->pixmap);
|
emit spriteChanged(event->pixmap);
|
||||||
}
|
}
|
||||||
void bind(QComboBox *combo, QString key) {
|
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, [this, key](QString value){
|
||||||
this->event->put(key, value);
|
this->event->put(key, value);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue