Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show All 11 Lines | |||||
12 | #include "icon.h" | 12 | #include "icon.h" | ||
13 | #include "settings.h" | 13 | #include "settings.h" | ||
14 | #include "formlayoutattached.h" | 14 | #include "formlayoutattached.h" | ||
15 | #include "mnemonicattached.h" | 15 | #include "mnemonicattached.h" | ||
16 | #include "delegaterecycler.h" | 16 | #include "delegaterecycler.h" | ||
17 | #include "pagepool.h" | 17 | #include "pagepool.h" | ||
18 | #include "scenepositionattached.h" | 18 | #include "scenepositionattached.h" | ||
19 | #include "wheelhandler.h" | 19 | #include "wheelhandler.h" | ||
20 | #include "shadowedrectangle.h" | ||||
20 | 21 | | |||
21 | #include <QQmlEngine> | 22 | #include <QQmlEngine> | ||
22 | #include <QQmlContext> | 23 | #include <QQmlContext> | ||
23 | #include <QQuickItem> | 24 | #include <QQuickItem> | ||
24 | #include <QQuickStyle> | 25 | #include <QQuickStyle> | ||
25 | #include <QGuiApplication> | 26 | #include <QGuiApplication> | ||
26 | #include <QClipboard> | 27 | #include <QClipboard> | ||
27 | 28 | | |||
▲ Show 20 Lines • Show All 202 Lines • ▼ Show 20 Line(s) | 133 | #endif | |||
230 | 231 | | |||
231 | // 2.11 | 232 | // 2.11 | ||
232 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | 233 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | ||
233 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | 234 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | ||
234 | 235 | | |||
235 | //TODO: remove | 236 | //TODO: remove | ||
236 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | 237 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | ||
237 | 238 | | |||
239 | // 2.12 | ||||
240 | qmlRegisterType<ShadowedRectangle>(uri, 2, 12, "ShadowedRectangle"); | ||||
241 | qmlRegisterUncreatableType<BorderGroup>(uri, 2, 12, "BorderGroup", QStringLiteral("Used as grouped property")); | ||||
242 | qmlRegisterUncreatableType<ShadowGroup>(uri, 2, 12, "ShadowGroup", QStringLiteral("Used as grouped property")); | ||||
243 | | ||||
238 | qmlProtectModule(uri, 2); | 244 | qmlProtectModule(uri, 2); | ||
239 | } | 245 | } | ||
240 | 246 | | |||
241 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | 247 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
242 | { | 248 | { | ||
243 | Q_UNUSED(uri); | 249 | Q_UNUSED(uri); | ||
244 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | 250 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | ||
245 | } | 251 | } | ||
246 | 252 | | |||
247 | #include "kirigamiplugin.moc" | 253 | #include "kirigamiplugin.moc" |