Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Line(s) | 134 | #endif | |||
---|---|---|---|---|---|
240 | // 2.12 | 240 | // 2.12 | ||
241 | qmlRegisterType<ShadowedRectangle>(uri, 2, 12, "ShadowedRectangle"); | 241 | qmlRegisterType<ShadowedRectangle>(uri, 2, 12, "ShadowedRectangle"); | ||
242 | qmlRegisterType<ShadowedTexture>(uri, 2, 12, "ShadowedTexture"); | 242 | qmlRegisterType<ShadowedTexture>(uri, 2, 12, "ShadowedTexture"); | ||
243 | qmlRegisterType(componentUrl(QStringLiteral("ShadowedImage.qml")), uri, 2, 12, "ShadowedImage"); | 243 | qmlRegisterType(componentUrl(QStringLiteral("ShadowedImage.qml")), uri, 2, 12, "ShadowedImage"); | ||
244 | 244 | | |||
245 | qmlRegisterUncreatableType<BorderGroup>(uri, 2, 12, "BorderGroup", QStringLiteral("Used as grouped property")); | 245 | qmlRegisterUncreatableType<BorderGroup>(uri, 2, 12, "BorderGroup", QStringLiteral("Used as grouped property")); | ||
246 | qmlRegisterUncreatableType<ShadowGroup>(uri, 2, 12, "ShadowGroup", QStringLiteral("Used as grouped property")); | 246 | qmlRegisterUncreatableType<ShadowGroup>(uri, 2, 12, "ShadowGroup", QStringLiteral("Used as grouped property")); | ||
247 | 247 | | |||
248 | qmlRegisterUncreatableType<CornersGroup>(uri, 2, 12, "CornersGroup", QStringLiteral("Used as grouped property")); | ||||
249 | | ||||
248 | qmlProtectModule(uri, 2); | 250 | qmlProtectModule(uri, 2); | ||
249 | } | 251 | } | ||
250 | 252 | | |||
251 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | 253 | void KirigamiPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
252 | { | 254 | { | ||
253 | Q_UNUSED(uri); | 255 | Q_UNUSED(uri); | ||
254 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | 256 | connect(this, &KirigamiPlugin::languageChangeEvent, engine, &QQmlEngine::retranslate); | ||
255 | } | 257 | } | ||
256 | 258 | | |||
257 | #include "kirigamiplugin.moc" | 259 | #include "kirigamiplugin.moc" |