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

Method addScript

plugins/externalscript/externalscriptview.cpp:127–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void ExternalScriptView::addScript()
128{
129 auto* item = new ExternalScriptItem;
130 KDevelop::ScopedDialog<EditExternalScript> dlg(item, this);
131 if (dlg->exec() == QDialog::Accepted) {
132 m_plugin->model()->appendRow(item);
133 } else {
134 delete item;
135 }
136}
137
138void ExternalScriptView::removeScript()
139{

Callers

nothing calls this directly

Calls 3

execMethod · 0.80
appendRowMethod · 0.80
modelMethod · 0.45

Tested by

no test coverage detected