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

Method KTextEditorConfigPageAdapter

kdevplatform/shell/editorconfigpage.cpp:18–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace KDevelop;
17
18KTextEditorConfigPageAdapter::KTextEditorConfigPageAdapter(KTextEditor::ConfigPage* page, IPlugin* plugin,
19 QWidget* parent)
20 : ConfigPage(plugin, nullptr, parent)
21 , m_page(page)
22{
23 page->setParent(this);
24
25 auto* layout = new QVBoxLayout(this);
26 layout->setContentsMargins(0, 0, 0, 0);
27 layout->addWidget(page);
28 setLayout(layout);
29
30 connect(page, &KTextEditor::ConfigPage::changed,
31 this, &ConfigPage::changed);
32}
33
34EditorConfigPage::EditorConfigPage(QWidget* parent)
35 : ConfigPage(nullptr, nullptr, parent)

Callers

nothing calls this directly

Calls 2

setParentMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected