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

Method setConfigSkeleton

kdevplatform/interfaces/configpage.cpp:103–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void ConfigPage::setConfigSkeleton(KCoreConfigSkeleton* skel)
104{
105 Q_D(ConfigPage);
106
107 if (d->configSkeleton == skel) {
108 return;
109 }
110 d->configSkeleton = skel;
111 if (!skel) {
112 d->configManager.reset();
113 return;
114 }
115 // create the config dialog manager if it didn't exist or recreate it.
116 // This is needed because the used config skeleton has changed
117 // and no setter for that exists in KConfigDialogManager
118 d->configManager.reset(new KConfigDialogManager(this, d->configSkeleton));
119 connect(d->configManager.data(), &KConfigDialogManager::widgetModified, this, &ConfigPage::changed);
120 // d->configManager->addWidget(this) must be called from the config dialog,
121 // since the widget tree is probably not complete when calling this function
122}
123
124
125int ConfigPage::childPages() const

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected