diff options
Diffstat (limited to 'tests/auto/qml/qqmlsynchronizer/data/modelObject.qml')
-rw-r--r-- | tests/auto/qml/qqmlsynchronizer/data/modelObject.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlsynchronizer/data/modelObject.qml b/tests/auto/qml/qqmlsynchronizer/data/modelObject.qml new file mode 100644 index 0000000000..11d50c080d --- /dev/null +++ b/tests/auto/qml/qqmlsynchronizer/data/modelObject.qml @@ -0,0 +1,29 @@ +// Copyright (C) 2025 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only +import QtQml +import Qt.labs.synchronizer +import Test + +DelegateModel { + id: root + + property ListModel listModel: ListModel { + ListElement { + a: "a" + b: "b" + } + } + + model: listModel + + delegate: QtObject { + objectName: "foo" + + required property QtObject model + + Synchronizer on objectName { + targetObject: model + targetProperty: "a" + } + } +} |