Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Line(s) | 137 | #endif | |||
---|---|---|---|---|---|
253 | qmlRegisterUncreatableType<CornersGroup>(uri, 2, 12, "CornersGroup", QStringLiteral("Used as grouped property")); | 253 | qmlRegisterUncreatableType<CornersGroup>(uri, 2, 12, "CornersGroup", QStringLiteral("Used as grouped property")); | ||
254 | qmlRegisterType<PageRouter>(uri, 2, 12, "PageRouter"); | 254 | qmlRegisterType<PageRouter>(uri, 2, 12, "PageRouter"); | ||
255 | qmlRegisterType<PageRoute>(uri, 2, 12, "PageRoute"); | 255 | qmlRegisterType<PageRoute>(uri, 2, 12, "PageRoute"); | ||
256 | qmlRegisterUncreatableType<PageRouterAttached>(uri, 2, 12, "PageRouterAttached", QStringLiteral("PageRouterAttached cannot be created")); | 256 | qmlRegisterUncreatableType<PageRouterAttached>(uri, 2, 12, "PageRouterAttached", QStringLiteral("PageRouterAttached cannot be created")); | ||
257 | qmlRegisterType(componentUrl(QStringLiteral("RouterWindow.qml")), uri, 2, 12, "RouterWindow"); | 257 | qmlRegisterType(componentUrl(QStringLiteral("RouterWindow.qml")), uri, 2, 12, "RouterWindow"); | ||
258 | 258 | | |||
259 | // 2.13 | 259 | // 2.13 | ||
260 | qmlRegisterType<ImageColors>(uri, 2, 13, "ImageColors"); | 260 | qmlRegisterType<ImageColors>(uri, 2, 13, "ImageColors"); | ||
261 | qmlRegisterType(componentUrl(QStringLiteral("SwipeNavigator.qml")), uri, 2, 13, "SwipeNavigator"); | ||||
261 | 262 | | |||
262 | qmlProtectModule(uri, 2); | 263 | qmlProtectModule(uri, 2); | ||
263 | } | 264 | } | ||
264 | 265 | | |||
265 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | 266 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
266 | { | 267 | { | ||
267 | Q_UNUSED(uri); | 268 | Q_UNUSED(uri); | ||
268 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | 269 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | ||
269 | } | 270 | } | ||
270 | 271 | | |||
271 | #include "kirigamiplugin.moc" | 272 | #include "kirigamiplugin.moc" |