Make KWin::Client known to QML
This commit is contained in:
parent
81c6eeb4f4
commit
dab146422a
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// 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<ThumbnailItem>("org.kde.kwin", 0, 1, "ThumbnailItem");
|
||||
qmlRegisterType<WorkspaceWrapper>("org.kde.kwin", 0, 1, "KWin");
|
||||
qmlRegisterType<KWin::Client>();
|
||||
|
||||
m_view->rootContext()->setContextProperty("workspace", workspace());
|
||||
m_view->rootContext()->setContextProperty("options", options);
|
||||
|
|
Loading…
Reference in a new issue