Differential D22034 Diff 62268 components/containmentlayoutmanager/containmentlayoutmanagerplugin.cpp
Changeset View
Changeset View
Standalone View
Standalone View
components/containmentlayoutmanager/containmentlayoutmanagerplugin.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2019 by Marco Martin <mart@kde.org> | ||||
3 | | ||||
4 | * This program is free software; you can redistribute it and/or modify | ||||
5 | * it under the terms of the GNU Library General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2, or | ||||
7 | * (at your option) any later version. | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU Library General Public License for more details | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Library General Public | ||||
15 | * License along with this program; if not, write to the | ||||
16 | * Free Software Foundation, Inc., | ||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #include "containmentlayoutmanagerplugin.h" | ||||
21 | | ||||
22 | #include <QQmlEngine> | ||||
23 | #include <QQmlContext> | ||||
24 | #include <QQuickItem> | ||||
25 | | ||||
26 | #include "appletslayout.h" | ||||
27 | #include "appletcontainer.h" | ||||
28 | #include "configoverlay.h" | ||||
29 | #include "itemcontainer.h" | ||||
30 | #include "resizehandle.h" | ||||
31 | | ||||
32 | void ContainmentLayoutManagerPlugin::registerTypes(const char *uri) | ||||
33 | { | ||||
34 | Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.private.containmentlayoutmanager")); | ||||
35 | | ||||
36 | qmlRegisterType<AppletsLayout>(uri, 1, 0, "AppletsLayout"); | ||||
37 | qmlRegisterType<AppletContainer>(uri, 1, 0, "AppletContainer"); | ||||
38 | qmlRegisterType<ConfigOverlay>(uri, 1, 0, "ConfigOverlay"); | ||||
39 | qmlRegisterType<ItemContainer>(uri, 1, 0, "ItemContainer"); | ||||
40 | qmlRegisterType<ResizeHandle>(uri, 1, 0, "ResizeHandle"); | ||||
41 | | ||||
42 | // qmlProtectModule(uri, 1); | ||||
43 | } | ||||
44 | | ||||
45 | #include "moc_containmentlayoutmanagerplugin.cpp" | ||||
46 | |