Commit fb5f9bd1 authored by David Edmundson's avatar David Edmundson
Browse files

Expose libkworkspace SessionManagement class to QML

It was written with properties and signals intended for direct QML use.

This should be a step towards removing the plugins in the session
applets in kdeplasma-addons.

Test Plan: Used in a qml file

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 07780045
......@@ -25,10 +25,12 @@
#include <QQmlEngine>
#include "sessionsmodel.h"
#include <sessionmanagement.h>
void SessionsPrivatePlugin::registerTypes(const char *uri)
Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.sessions"));
qmlRegisterType<SessionManagement>(uri, 2, 0, "SessionManagement");
qmlRegisterType<SessionsModel>(uri, 2, 0, "SessionsModel");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment