Bind to all event combobox value changes

This commit is contained in:
Marcus Huderle 2018-07-07 11:21:19 -05:00
parent ecce7d26f2
commit fc0cf133b2

View file

@ -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);
}); });