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

Method rowsAboutToBeRemoved

plugins/externalscript/externalscriptplugin.cpp:356–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void ExternalScriptPlugin::rowsAboutToBeRemoved(const QModelIndex& /*parent*/, int start, int end)
357{
358 KConfigGroup config = getConfig();
359 for (int row = start; row <= end; ++row) {
360 const ExternalScriptItem* const item = static_cast<ExternalScriptItem*>(m_model->item(row));
361 KConfigGroup child = config.group(item->key());
362 qCDebug(PLUGIN_EXTERNALSCRIPT) << "removing config group:" << child.name();
363 child.deleteGroup();
364 }
365
366 config.sync();
367}
368
369void ExternalScriptPlugin::saveItem(const ExternalScriptItem* item)
370{

Callers

nothing calls this directly

Calls 3

itemMethod · 0.45
keyMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected