diff options
| author | Mate Barany <mate.barany@qt.io> | 2024-11-07 16:43:54 +0100 |
|---|---|---|
| committer | Mate Barany <mate.barany@qt.io> | 2024-11-08 12:37:48 +0100 |
| commit | 6701a70550c6715daf1116e8e4f4b47c23bb0617 (patch) | |
| tree | 6eff26222a5859029372093936be52a28691d8e5 /src/quick/doc/snippets | |
| parent | 22943711ff1f6aa999524f1b842f88c1da7b77c1 (diff) | |
Modify snippet so the screenshot looks accurate
When using the example code in listview-decorations.qml the result
does not look like as the attached screenshot: the gray highlight does
not extend until the end of the line, it stops at the end of the name.
Modify the snippet to match the screenshot.
Change-Id: Ib1b810381427fc37052c70082a8b1bba1d2fb4a6
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/quick/doc/snippets')
| -rw-r--r-- | src/quick/doc/snippets/qml/listview-decorations.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/doc/snippets/qml/listview-decorations.qml b/src/quick/doc/snippets/qml/listview-decorations.qml index af8d2bdcb0..ebbea7897d 100644 --- a/src/quick/doc/snippets/qml/listview-decorations.qml +++ b/src/quick/doc/snippets/qml/listview-decorations.qml @@ -27,6 +27,7 @@ Component { required property string name text: name font.pixelSize: 24 + width: ListView.view.width } } //! [delegate] @@ -43,7 +44,6 @@ ListView { gradient: clubcolors } highlight: Rectangle { - width: parent.width color: "lightgray" } } |
