scripting: Register Workspace singleton type
This commit is contained in:
parent
5435865329
commit
2b06957f6f
1 changed files with 6 additions and 0 deletions
|
@ -649,6 +649,12 @@ void KWin::Scripting::init()
|
|||
qmlRegisterType<ScriptingModels::V3::ClientModel>("org.kde.kwin", 3, 0, "ClientModel");
|
||||
qmlRegisterType<ScriptingModels::V3::ClientFilterModel>("org.kde.kwin", 3, 0, "ClientFilterModel");
|
||||
|
||||
qmlRegisterSingletonType<QtScriptWorkspaceWrapper>("org.kde.kwin", 3, 0, "Workspace", [](QQmlEngine *qmlEngine, QJSEngine *jsEngine) {
|
||||
Q_UNUSED(qmlEngine)
|
||||
Q_UNUSED(jsEngine)
|
||||
return new QtScriptWorkspaceWrapper();
|
||||
});
|
||||
|
||||
qmlRegisterType<KWin::AbstractClient>();
|
||||
qmlRegisterType<KWin::X11Client>();
|
||||
qmlRegisterType<QAbstractItemModel>();
|
||||
|
|
Loading…
Reference in a new issue