Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show All 12 Lines | |||||
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 | #include "shadowedrectangle.h" | ||
21 | #include "shadowedtexture.h" | ||||
21 | 22 | | |||
22 | #include <QQmlEngine> | 23 | #include <QQmlEngine> | ||
23 | #include <QQmlContext> | 24 | #include <QQmlContext> | ||
24 | #include <QQuickItem> | 25 | #include <QQuickItem> | ||
25 | #include <QQuickStyle> | 26 | #include <QQuickStyle> | ||
26 | #include <QGuiApplication> | 27 | #include <QGuiApplication> | ||
27 | #include <QClipboard> | 28 | #include <QClipboard> | ||
28 | 29 | | |||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 134 | #endif | |||
233 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | 234 | qmlRegisterType<PagePool>(uri, 2, 11, "PagePool"); | ||
234 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | 235 | qmlRegisterType(componentUrl(QStringLiteral("PagePoolAction.qml")), uri, 2, 11, "PagePoolAction"); | ||
235 | 236 | | |||
236 | //TODO: remove | 237 | //TODO: remove | ||
237 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | 238 | qmlRegisterType(componentUrl(QStringLiteral("SwipeListItem2.qml")), uri, 2, 11, "SwipeListItem2"); | ||
238 | 239 | | |||
239 | // 2.12 | 240 | // 2.12 | ||
240 | qmlRegisterType<ShadowedRectangle>(uri, 2, 12, "ShadowedRectangle"); | 241 | qmlRegisterType<ShadowedRectangle>(uri, 2, 12, "ShadowedRectangle"); | ||
242 | qmlRegisterType<ShadowedTexture>(uri, 2, 12, "ShadowedTexture"); | ||||
243 | qmlRegisterType(componentUrl(QStringLiteral("ShadowedImage.qml")), uri, 2, 12, "ShadowedImage"); | ||||
244 | | ||||
241 | qmlRegisterUncreatableType<BorderGroup>(uri, 2, 12, "BorderGroup", QStringLiteral("Used as grouped property")); | 245 | qmlRegisterUncreatableType<BorderGroup>(uri, 2, 12, "BorderGroup", QStringLiteral("Used as grouped property")); | ||
242 | qmlRegisterUncreatableType<ShadowGroup>(uri, 2, 12, "ShadowGroup", QStringLiteral("Used as grouped property")); | 246 | qmlRegisterUncreatableType<ShadowGroup>(uri, 2, 12, "ShadowGroup", QStringLiteral("Used as grouped property")); | ||
243 | 247 | | |||
244 | qmlProtectModule(uri, 2); | 248 | qmlProtectModule(uri, 2); | ||
245 | } | 249 | } | ||
246 | 250 | | |||
247 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | 251 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
248 | { | 252 | { | ||
249 | Q_UNUSED(uri); | 253 | Q_UNUSED(uri); | ||
250 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | 254 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | ||
251 | } | 255 | } | ||
252 | 256 | | |||
253 | #include "kirigamiplugin.moc" | 257 | #include "kirigamiplugin.moc" |