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

Method saveItem

plugins/externalscript/externalscriptplugin.cpp:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void ExternalScriptPlugin::saveItem(const ExternalScriptItem* item)
370{
371 const QModelIndex index = m_model->indexFromItem(item);
372 Q_ASSERT(index.isValid());
373
374 getConfig().group(item->key()).deleteGroup(); // delete the previous group
375 setupKeys(index.row(), index.row());
376 saveItemForRow(index.row()); // save the new group
377}
378
379void ExternalScriptPlugin::saveItemForRow(int row)
380{

Callers 1

saveMethod · 0.80

Calls 4

indexFromItemMethod · 0.80
isValidMethod · 0.45
keyMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected