Changeset View
Changeset View
Standalone View
Standalone View
src/kirigamiplugin.cpp
Show First 20 Lines • Show All 155 Lines • ▼ Show 20 Line(s) | 138 | #endif | |||
---|---|---|---|---|---|
156 | //Theme changed from a singleton to an attached property | 156 | //Theme changed from a singleton to an attached property | ||
157 | qmlRegisterUncreatableType<Kirigami::PlatformTheme>(uri, 2, 2, "Theme", "Cannot create objects of type Theme, use it as an attached poperty"); | 157 | qmlRegisterUncreatableType<Kirigami::PlatformTheme>(uri, 2, 2, "Theme", "Cannot create objects of type Theme, use it as an attached poperty"); | ||
158 | 158 | | |||
159 | //2.3 | 159 | //2.3 | ||
160 | qmlRegisterType(componentUrl(QStringLiteral("FormLayout.qml")), uri, 2, 3, "FormLayout"); | 160 | qmlRegisterType(componentUrl(QStringLiteral("FormLayout.qml")), uri, 2, 3, "FormLayout"); | ||
161 | qmlRegisterUncreatableType<FormLayoutAttached>(uri, 2, 3, "FormData", "Cannot create objects of type FormData, use it as an attached poperty"); | 161 | qmlRegisterUncreatableType<FormLayoutAttached>(uri, 2, 3, "FormData", "Cannot create objects of type FormData, use it as an attached poperty"); | ||
162 | qmlRegisterUncreatableType<MnemonicAttached>(uri, 2, 3, "MnemonicData", "Cannot create objects of type MnemonicData, use it as an attached poperty"); | 162 | qmlRegisterUncreatableType<MnemonicAttached>(uri, 2, 3, "MnemonicData", "Cannot create objects of type MnemonicData, use it as an attached poperty"); | ||
163 | 163 | | |||
164 | //2.4 | ||||
165 | qmlRegisterType(componentUrl(QStringLiteral("AbstractCard.qml")), uri, 2, 4, "AbstractCard"); | ||||
166 | qmlRegisterType(componentUrl(QStringLiteral("Card.qml")), uri, 2, 4, "Card"); | ||||
167 | qmlRegisterType(componentUrl(QStringLiteral("CardsListView.qml")), uri, 2, 4, "CardsListView"); | ||||
168 | qmlRegisterType(componentUrl(QStringLiteral("CardsGridView.qml")), uri, 2, 4, "CardsGridView"); | ||||
169 | qmlRegisterType(componentUrl(QStringLiteral("CardsLayout.qml")), uri, 2, 4, "CardsLayout"); | ||||
170 | | ||||
164 | qmlProtectModule(uri, 2); | 171 | qmlProtectModule(uri, 2); | ||
165 | } | 172 | } | ||
166 | 173 | | |||
167 | #include "moc_kirigamiplugin.cpp" | 174 | #include "moc_kirigamiplugin.cpp" | ||
168 | 175 | |