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/auto/qml/qqmlproperty | |
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/auto/qml/qqmlproperty')
-rw-r--r-- | tests/auto/qml/qqmlproperty/tst_qqmlproperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |