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

Method DeclarativeScript

src/scripting/scripting.cpp:564–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564KWin::DeclarativeScript::DeclarativeScript(int id, QString scriptName, QString pluginName, QObject *parent)
565 : AbstractScript(id, scriptName, pluginName, parent)
566 , m_context(new QQmlContext(Scripting::self()->declarativeScriptSharedContext(), this))
567 , m_component(new QQmlComponent(Scripting::self()->qmlEngine(), this))
568{
569 m_context->setContextProperty(QStringLiteral("KWin"), new JSEngineGlobalMethodsWrapper(this));
570}
571
572KWin::DeclarativeScript::~DeclarativeScript()
573{

Callers

nothing calls this directly

Calls 3

selfFunction · 0.85
qmlEngineMethod · 0.45

Tested by

no test coverage detected