diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-25 16:12:05 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-27 19:53:58 +0200 |
commit | dc722a1ffb3ec18b2d6a344f55d8aeda6412b236 (patch) | |
tree | 406ca3a8a03a88d325052cbd26782d6c53bdf4a0 /tests | |
parent | 5348518daace1db1eb75273196a8fa3703e78004 (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 'tests')
-rw-r--r-- | tests/auto/qml/qqmllanguage/testtypes.cpp | 2 | ||||
-rw-r--r-- | tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllanguage/testtypes.cpp b/tests/auto/qml/qqmllanguage/testtypes.cpp index c3272d0031..80ec4900c7 100644 --- a/tests/auto/qml/qqmllanguage/testtypes.cpp +++ b/tests/auto/qml/qqmllanguage/testtypes.cpp @@ -47,7 +47,7 @@ static QJSValue myQJSValueQObjectSingleton(QQmlEngine *engine, QJSEngine *script void registerTypes() { - qmlRegisterInterface<MyInterface>("MyInterface"); + qmlRegisterInterface<MyInterface>("MyInterface", 1); qmlRegisterType<MyQmlObject>("Test",1,0,"MyQmlObject"); qmlRegisterType<MyTypeObject>("Test",1,0,"MyTypeObject"); qmlRegisterType<MyContainer>("Test",1,0,"MyContainer"); diff --git a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp index 4523cd029e..12c6ef89aa 100644 --- a/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp +++ b/tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp @@ -2146,7 +2146,7 @@ void tst_qqmlproperty::nullPropertyBinding() void tst_qqmlproperty::interfaceBinding() { - qmlRegisterInterface<Interface>("Interface"); + qmlRegisterInterface<Interface>("Interface", 1); qmlRegisterType<A>("io.qt.bugreports", 1, 0, "A"); qmlRegisterType<B>("io.qt.bugreports", 1, 0, "B"); qmlRegisterType<C>("io.qt.bugreports", 1, 0, "C"); |