ComboBox.hpp
1 #pragma once
2 
3 #include <QComboBox>
4 
5 #include <score_lib_base_export.h>
6 
7 namespace score
8 {
9 class ComboBox : public QComboBox
10 {
11 public:
12  ComboBox(QWidget* parent)
13  : QComboBox(parent)
14  {
15  setDisabled(true);
16  connect(this, qOverload<int>(&QComboBox::currentIndexChanged), this, [&](int index) {
17  this->setEnabled(index != -1);
18  });
19  }
20 };
21 }
Definition: ComboBox.hpp:10
Base toolkit upon which the software is built.
Definition: Application.cpp:90