| 176 | } |
| 177 | |
| 178 | MesonOptionComboView::MesonOptionComboView(MesonOptionPtr option, QWidget* parent) |
| 179 | : MesonOptionBaseView(option, parent) |
| 180 | , m_option(dynamic_pointer_cast<MesonOptionCombo>(option)) |
| 181 | { |
| 182 | Q_ASSERT(m_option); |
| 183 | |
| 184 | m_input = new QComboBox(this); |
| 185 | m_input->clear(); |
| 186 | m_input->addItems(m_option->choices()); |
| 187 | m_input->setEditable(false); |
| 188 | connect(m_input, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &MesonOptionComboView::updated); |
| 189 | setInputWidget(m_input); |
| 190 | } |
| 191 | |
| 192 | MesonOptionIntegerView::MesonOptionIntegerView(MesonOptionPtr option, QWidget* parent) |
| 193 | : MesonOptionBaseView(option, parent) |
nothing calls this directly
no test coverage detected