diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-07-28 16:09:25 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-08-03 10:00:56 +0200 |
commit | b31b50791bab625eb7c2e3e69c378e4b43caae8f (patch) | |
tree | a86e28d5f627ee2b090be79bc5be144cde2db061 /tests/auto/quick/qquicktableview/tst_qquicktableview.cpp | |
parent | cc93dae245ab0d96ef7c678a8c1e4cd12fc0581f (diff) |
QQuickLoader: Remove QQmlV4Function usage
Just add a normal overload set. Unfortunately, one overload would
conflict with the plain setter of the source property; but we need a
difference in behavior: The plain setter should not resolve the URL,
whereas the invokable should.
Solve this by renaming the setter (can be done, as the type is private).
Task-number: QTBUG-105139
Change-Id: I27db968935f6eeddd415ccc6cb8c06ad6f0cf896
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
-rw-r--r-- | tests/auto/quick/qquicktableview/tst_qquicktableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp index 856a8d7794..0455a16070 100644 --- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp +++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp @@ -49,7 +49,7 @@ Q_DECLARE_METATYPE(QMarginsF); view->show(); \ QVERIFY(QTest::qWaitForWindowActive(view)); \ auto loader = view->rootObject()->property("loader").value<QQuickLoader *>(); \ - loader->setSource(testFileUrl(fileName)); \ + loader->setSourceWithoutResolve(testFileUrl(fileName)); \ QTRY_VERIFY(loader->item()); \ QCOMPARE(loader->status(), QQuickLoader::Status::Ready); \ GET_QML_TABLEVIEW(tableView) |