Changeset View
Changeset View
Standalone View
Standalone View
components/sessionsprivate/sessionsprivateplugin.cpp
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | THE SOFTWARE. | 20 | THE SOFTWARE. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #include "sessionsprivateplugin.h" | 23 | #include "sessionsprivateplugin.h" | ||
24 | 24 | | |||
25 | #include <QQmlEngine> | 25 | #include <QQmlEngine> | ||
26 | 26 | | |||
27 | #include "sessionsmodel.h" | 27 | #include "sessionsmodel.h" | ||
28 | #include <sessionmanagement.h> | ||||
28 | 29 | | |||
29 | void SessionsPrivatePlugin::registerTypes(const char *uri) | 30 | void SessionsPrivatePlugin::registerTypes(const char *uri) | ||
30 | { | 31 | { | ||
31 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.sessions")); | 32 | Q_ASSERT(uri == QLatin1String("org.kde.plasma.private.sessions")); | ||
32 | 33 | | |||
34 | qmlRegisterType<SessionManagement>(uri, 2, 0, "SessionManagement"); | ||||
33 | qmlRegisterType<SessionsModel>(uri, 2, 0, "SessionsModel"); | 35 | qmlRegisterType<SessionsModel>(uri, 2, 0, "SessionsModel"); | ||
34 | } | 36 | } |