瀏覽代碼

Bind to all event combobox value changes

Marcus Huderle 5 年之前
父節點
當前提交
fc0cf133b2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      editor.h

+ 1
- 1
editor.h 查看文件

173
         emit spriteChanged(event->pixmap);
173
         emit spriteChanged(event->pixmap);
174
     }
174
     }
175
     void bind(QComboBox *combo, QString key) {
175
     void bind(QComboBox *combo, QString key) {
176
-        connect(combo, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::activated),
176
+        connect(combo, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::currentTextChanged),
177
                 this, [this, key](QString value){
177
                 this, [this, key](QString value){
178
             this->event->put(key, value);
178
             this->event->put(key, value);
179
         });
179
         });