aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-08-25 16:12:05 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-08-27 19:53:58 +0200
commitdc722a1ffb3ec18b2d6a344f55d8aeda6412b236 (patch)
tree406ca3a8a03a88d325052cbd26782d6c53bdf4a0 /src/qml/qml/qqml.h
parent5348518daace1db1eb75273196a8fa3703e78004 (diff)
Remove deprecated registration functions
[ChangeLog][QML] Removed qmlRegisterType overload taking no arguments, use qmlRegisterAnonymousType instead, or switch to declarative type registration with QML_ANONYMOUS. Removed overloads of qmlRegisterExtendedType and qmlRegisterInterface which did not take a version argument. Use the overloads providing a version, or swtich to declarative type registration with QML_EXTENDED and QML_INTERFACE. Change-Id: Iadcc53d7ebe5cae40856b69efc33293fd0208c1f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.h')
-rw-r--r--src/qml/qml/qqml.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/qml/qml/qqml.h b/src/qml/qml/qqml.h
index 0d474d6c4e..d346660987 100644
--- a/src/qml/qml/qqml.h
+++ b/src/qml/qml/qqml.h
@@ -190,14 +190,6 @@ int qmlRegisterAnonymousType(const char *uri, int versionMajor)
return QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type);
}
-#if QT_DEPRECATED_SINCE(5, 14)
-template<typename T>
-QT_DEPRECATED_VERSION_X_5_14("Use qmlRegisterAnonymousType instead") int qmlRegisterType()
-{
- return qmlRegisterAnonymousType<T>("", 1);
-}
-#endif
-
int Q_QML_EXPORT qmlRegisterTypeNotAvailable(const char *uri, int versionMajor, int versionMinor,
const char *qmlName, const QString& message);
@@ -451,15 +443,6 @@ int qmlRegisterExtendedType(const char *uri, int versionMajor)
return QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type);
}
-#if QT_DEPRECATED_SINCE(5, 15)
-template<typename T, typename E>
-QT_DEPRECATED_VERSION_X_5_15("Use qmlRegisterExtendedType(uri, versionMajor) instead")
-int qmlRegisterExtendedType()
-{
- return qmlRegisterExtendedType<T, E>("", 0);
-}
-#endif
-
template<typename T, typename E>
int qmlRegisterExtendedType(const char *uri, int versionMajor, int versionMinor,
const char *qmlName)
@@ -496,31 +479,6 @@ int qmlRegisterExtendedType(const char *uri, int versionMajor, int versionMinor,
return QQmlPrivate::qmlregister(QQmlPrivate::TypeRegistration, &type);
}
-#if QT_DEPRECATED_SINCE(5, 15)
-template<typename T>
-QT_DEPRECATED_VERSION_X_5_15("Use qmlRegisterInterface(uri, versionMajor) instead")
-int qmlRegisterInterface(const char *typeName)
-{
- QByteArray name(typeName);
-
- QByteArray pointerName(name + '*');
- QByteArray listName("QQmlListProperty<" + name + '>');
-
- QQmlPrivate::RegisterInterface qmlInterface = {
- 0,
-
- QMetaType::fromType<T *>(),
- QMetaType::fromType<QQmlListProperty<T> >(),
-
- qobject_interface_iid<T *>(),
- "",
- QTypeRevision::zero()
- };
-
- return QQmlPrivate::qmlregister(QQmlPrivate::InterfaceRegistration, &qmlInterface);
-}
-#endif
-
template<typename T>
int qmlRegisterInterface(const char *uri, int versionMajor)
{