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

Method unloadingPlugin

kdevplatform/shell/sourceformattercontroller.cpp:360–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void SourceFormatterController::unloadingPlugin(IPlugin* plugin)
361{
362 Q_D(SourceFormatterController);
363
364 auto* sourceFormatter = plugin->extension<ISourceFormatter>();
365
366 if (!sourceFormatter || !d->enabled) {
367 return;
368 }
369
370 const int idx = d->sourceFormatters.indexOf(sourceFormatter);
371 Q_ASSERT(idx != -1);
372 d->sourceFormatters.remove(idx);
373
374 resetUi();
375
376 emit formatterUnloading(sourceFormatter);
377 if (d->sourceFormatters.isEmpty()) {
378 emit hasFormattersChanged(false);
379 }
380}
381
382
383void SourceFormatterController::initialize()

Callers

nothing calls this directly

Calls 3

indexOfMethod · 0.45
removeMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected