MCPcopy Create free account
hub / github.com/KDE/kwin / findScript

Method findScript

src/scripting/scripting.cpp:824–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824KWin::AbstractScript *KWin::Scripting::findScript(const QString &pluginName) const
825{
826 QMutexLocker locker(m_scriptsLock.get());
827 for (AbstractScript *script : std::as_const(scripts)) {
828 if (script->pluginName() == pluginName) {
829 return script;
830 }
831 }
832 return nullptr;
833}
834
835bool KWin::Scripting::unloadScript(const QString &pluginName)
836{

Callers 7

testScriptMethod · 0.80
initMethod · 0.80
testEdgeMethod · 0.80
testTouchEdgeMethod · 0.80
testEdgeUnregisterMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 7

testScriptMethod · 0.64
initMethod · 0.64
testEdgeMethod · 0.64
testTouchEdgeMethod · 0.64
testEdgeUnregisterMethod · 0.64