Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show All 24 Lines | |||||
25 | #include "icon.h" | 25 | #include "icon.h" | ||
26 | #include "settings.h" | 26 | #include "settings.h" | ||
27 | #include "formlayoutattached.h" | 27 | #include "formlayoutattached.h" | ||
28 | #include "mnemonicattached.h" | 28 | #include "mnemonicattached.h" | ||
29 | #include "delegaterecycler.h" | 29 | #include "delegaterecycler.h" | ||
30 | #include "pagepool.h" | 30 | #include "pagepool.h" | ||
31 | #include "scenepositionattached.h" | 31 | #include "scenepositionattached.h" | ||
32 | #include "wheelhandler.h" | 32 | #include "wheelhandler.h" | ||
33 | #include "swipeaction.h" | ||||
33 | 34 | | |||
34 | #include <QQmlEngine> | 35 | #include <QQmlEngine> | ||
35 | #include <QQmlContext> | 36 | #include <QQmlContext> | ||
36 | #include <QQuickItem> | 37 | #include <QQuickItem> | ||
37 | #include <QQuickStyle> | 38 | #include <QQuickStyle> | ||
38 | #include <QGuiApplication> | 39 | #include <QGuiApplication> | ||
39 | #include <QClipboard> | 40 | #include <QClipboard> | ||
40 | 41 | | |||
▲ Show 20 Lines • Show All 168 Lines • ▼ Show 20 Line(s) | 115 | #endif | |||
209 | 210 | | |||
210 | //2.10 | 211 | //2.10 | ||
211 | qmlRegisterType(componentUrl(QStringLiteral("ListSectionHeader.qml")), uri, 2, 10, "ListSectionHeader"); | 212 | qmlRegisterType(componentUrl(QStringLiteral("ListSectionHeader.qml")), uri, 2, 10, "ListSectionHeader"); | ||
212 | 213 | | |||
213 | // 2.11 | 214 | // 2.11 | ||
214 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | 215 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | ||
215 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | 216 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | ||
216 | 217 | | |||
218 | // 2.12 | ||||
219 | qmlRegisterUncreatableType<SwipeAction>(uri, 2, 12, "SwipeAction", QStringLiteral("Cannot create objects of type SwipeAction.")); | ||||
220 | qmlRegisterType(componentUrl(QStringLiteral("ActionRow.qml")), uri, 2, 12, "ActionRow"); | ||||
221 | | ||||
217 | //TODO: remove | 222 | //TODO: remove | ||
218 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | 223 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | ||
219 | 224 | | |||
220 | qmlProtectModule(uri, 2); | 225 | qmlProtectModule(uri, 2); | ||
221 | } | 226 | } | ||
222 | 227 | | |||
223 | #include "kirigamiplugin.moc" | 228 | #include "kirigamiplugin.moc" |