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

Method MesonOptionArrayView

plugins/meson/settings/mesonoptionbaseview.cpp:149–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147// Derived class constructors
148
149MesonOptionArrayView::MesonOptionArrayView(MesonOptionPtr option, QWidget* parent)
150 : MesonOptionBaseView(option, parent)
151 , m_option(dynamic_pointer_cast<MesonOptionArray>(option))
152{
153 Q_ASSERT(m_option);
154
155 m_input = new QPushButton(this);
156 connect(m_input, &QPushButton::clicked, this, [this]() {
157 MesonListEditor editor(m_option->rawValue(), this);
158 if (editor.exec() == QDialog::Accepted) {
159 m_option->setValue(editor.content());
160 m_input->setText(m_option->value());
161 setChanged(m_option->isUpdated());
162 }
163 });
164 setInputWidget(m_input);
165}
166
167MesonOptionBoolView::MesonOptionBoolView(MesonOptionPtr option, QWidget* parent)
168 : MesonOptionBaseView(option, parent)

Callers

nothing calls this directly

Calls 7

rawValueMethod · 0.80
execMethod · 0.80
isUpdatedMethod · 0.80
setValueMethod · 0.45
contentMethod · 0.45
setTextMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected