diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-14 14:11:05 +0100 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-14 20:53:52 +0100 |
| commit | 922b95ea158ee39bd22df6c964e86a67493361c2 (patch) | |
| tree | 2dec515b702de2481ccd7ccfae461fb3cdba6669 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | 6eff3465b5192e40343f0486ef7076da2ed28bed (diff) | |
QmlCompiler: Avoid some deprecation warnings
QString::count() is deprecated, and also the "engine" argument to
QQmlListReference. Also, properly convert the results of "length"
retrieval.
Change-Id: Ib7edde1326a0347902174a23147086b9deccfe17
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index e8861b3b84..2f98861d04 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -756,7 +756,7 @@ void tst_QmlCppCodegen::componentReturnType() QScopedPointer<QObject> object(component.create()); QCOMPARE(object->property("count").toInt(), 10); - QCOMPARE(QQmlListReference(object.data(), "children", &engine).count(), 11); + QCOMPARE(QQmlListReference(object.data(), "children").count(), 11); } void tst_QmlCppCodegen::onAssignment() |
