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

Method removePagesForPlugin

kdevplatform/shell/configdialog.cpp:122–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void ConfigDialog::removePagesForPlugin(IPlugin* plugin)
123{
124 Q_ASSERT(plugin);
125 const auto oldPages = m_pages;
126 for (auto&& item : oldPages) {
127 if (!item) {
128 continue;
129 }
130 auto page = qobject_cast<ConfigPage*>(item->widget());
131 if (page && page->plugin() == plugin) {
132 removePage(item); // this also deletes the config page -> QPointer is set to null
133 }
134 };
135 // also remove all items that were deleted because a parent KPageWidgetItem was removed
136 m_pages.removeAll(QPointer<KPageWidgetItem>());
137}
138
139void ConfigDialog::appendConfigPage(ConfigPage* page)
140{

Callers

nothing calls this directly

Calls 2

widgetMethod · 0.45
pluginMethod · 0.45

Tested by

no test coverage detected