diff options
author | Ulf Hermann <[email protected]> | 2022-03-28 10:44:48 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2022-04-11 14:12:09 +0200 |
commit | ec79af7396fd695b25f8f7dba66e8048d54b953b (patch) | |
tree | 68c3d2967228cfc8befecec233c87cec4f039f87 /tests/auto/quick/qquickpathview | |
parent | 60d9f0dd737f23ad239bfbdb21573c8a7633a63f (diff) |
DelegateModel: Use actual bindings for required properties
Tracking the change signals is brittle and error prone. We have bindings
for this case. Let's use them. We can construct a synthetic
QV4::Function that contains its own QQmlJSAotFunction. In order to pass
the property index to the function we generalize the "index" property of
QQmlJSAotFunction to contain any extra data the function may want to
use. If there is no compilation unit, we pass that instead.
Fixes: QTBUG-91649
Change-Id: I0758bcc4964a48c6818d18bfb0972e67dbc16a1f
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'tests/auto/quick/qquickpathview')
-rw-r--r-- | tests/auto/quick/qquickpathview/tst_qquickpathview.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp index 2a0e1e5b6d..93899d3cfd 100644 --- a/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp +++ b/tests/auto/quick/qquickpathview/tst_qquickpathview.cpp @@ -2784,7 +2784,6 @@ void tst_QQuickPathView::requiredPropertiesInDelegate() } { QScopedPointer<QQuickView> window(createView()); - QTest::ignoreMessage(QtMsgType::QtWarningMsg, QRegularExpression("Writing to \"name\" broke the binding to the underlying model")); window->setSource(testFileUrl("delegateWithRequiredProperties.3.qml")); window->show(); QTRY_VERIFY(window->rootObject()->property("working").toBool()); |