MCPcopy Create free account
hub / github.com/KDE/kdevelop / MesonOptionComboView

Method MesonOptionComboView

plugins/meson/settings/mesonoptionbaseview.cpp:178–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178MesonOptionComboView::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
192MesonOptionIntegerView::MesonOptionIntegerView(MesonOptionPtr option, QWidget* parent)
193 : MesonOptionBaseView(option, parent)

Callers

nothing calls this directly

Calls 4

choicesMethod · 0.80
clearMethod · 0.45
addItemsMethod · 0.45
setEditableMethod · 0.45

Tested by

no test coverage detected