소스 검색

Bind to all event combobox value changes

Marcus Huderle 5 년 전
부모
커밋
fc0cf133b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      editor.h

+ 1
- 1
editor.h 파일 보기

@@ -173,7 +173,7 @@ public:
173 173
         emit spriteChanged(event->pixmap);
174 174
     }
175 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 177
                 this, [this, key](QString value){
178 178
             this->event->put(key, value);
179 179
         });