diff options
| author | Sze Howe Koh <szehowe.koh@gmail.com> | 2023-09-12 15:42:42 +0800 |
|---|---|---|
| committer | Sze Howe Koh <szehowe.koh@gmail.com> | 2023-09-13 02:00:25 +0800 |
| commit | 033fd3aa8c7c881697d4eb8d7e143d3088ca117f (patch) | |
| tree | c3f23c4f8275f97c6eea2edfef21355dd1ace071 /src/quick/doc/snippets | |
| parent | d7d1059ef96ff0410f5e3644f64059f16ea3b2b9 (diff) | |
Doc: Fix unqualified access in PathView example
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: Idb7e0f0dea262592ca39e8d42298bb51c91281cd
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Mike Trahearn <mtrahearn@topcon.com>
Diffstat (limited to 'src/quick/doc/snippets')
| -rw-r--r-- | src/quick/doc/snippets/qml/pathview/pathview.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/quick/doc/snippets/qml/pathview/pathview.qml b/src/quick/doc/snippets/qml/pathview/pathview.qml index 7b15e5988e..2a801e5d7c 100644 --- a/src/quick/doc/snippets/qml/pathview/pathview.qml +++ b/src/quick/doc/snippets/qml/pathview/pathview.qml @@ -12,15 +12,20 @@ Rectangle { id: delegate Column { id: wrapper + + required property url icon + required property string name + opacity: PathView.isCurrentItem ? 1 : 0.5 + Image { anchors.horizontalCenter: nameText.horizontalCenter width: 64; height: 64 - source: icon + source: wrapper.icon } Text { id: nameText - text: name + text: wrapper.name font.pointSize: 16 } } |
