From dab146422aca4a83edde00b3afbbffae0e9a710b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 24 Mar 2012 10:49:21 +0100 Subject: [PATCH] Make KWin::Client known to QML --- scripting/scripting.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp index bc41770fa4..b5b1a2e117 100644 --- a/scripting/scripting.cpp +++ b/scripting/scripting.cpp @@ -23,6 +23,7 @@ along with this program. If not, see . // own #include "meta.h" #include "workspace_wrapper.h" +#include "../client.h" #include "../thumbnailitem.h" #include "../options.h" #include "../workspace.h" @@ -217,6 +218,7 @@ void KWin::DeclarativeScript::run() installScriptFunctions(kdeclarative.scriptEngine()); qmlRegisterType("org.kde.kwin", 0, 1, "ThumbnailItem"); qmlRegisterType("org.kde.kwin", 0, 1, "KWin"); + qmlRegisterType(); m_view->rootContext()->setContextProperty("workspace", workspace()); m_view->rootContext()->setContextProperty("options", options);