MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / createComponent

Method createComponent

src/scripting/scripting.cpp:590–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590void KWin::DeclarativeScript::createComponent()
591{
592 if (m_component->isError()) {
593 qCWarning(KWIN_SCRIPTING) << "Component failed to load: " << m_component->errors();
594 } else {
595 if (QObject *object = m_component->create(m_context)) {
596 object->setParent(this);
597 }
598 }
599 setRunning(true);
600}
601
602KWin::JSEngineGlobalMethodsWrapper::JSEngineGlobalMethodsWrapper(KWin::DeclarativeScript *parent)
603 : QObject(parent)

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected