aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-05-24 16:07:25 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-05-25 11:54:13 +0000
commit120e5c8dd99a51c0b5010f1eb7101366ae3ea638 (patch)
tree3554036bed7c5263628c22d12422fb5c3aed7054 /src
parentcf9c07539c3e6a30f5f73fd1b2d5feebf03d716a (diff)
Make the PathView doc snippet match the animated gif better
The docs explain that PathAttribute can be used to "scale and modify the opacity of the items as they rotate", but at first glance it's confusing to see the red/black color change in the code and wonder why it is not that way in the animated preview. Change-Id: I9f441a6342cea464644876834206e2923ce0f471 Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/doc/snippets/qml/pathview/pathview.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/doc/snippets/qml/pathview/pathview.qml b/src/quick/doc/snippets/qml/pathview/pathview.qml
index 1a31f1372b..58d19b1a0c 100644
--- a/src/quick/doc/snippets/qml/pathview/pathview.qml
+++ b/src/quick/doc/snippets/qml/pathview/pathview.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2018 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -59,6 +59,7 @@ Rectangle {
id: delegate
Column {
id: wrapper
+ opacity: PathView.isCurrentItem ? 1 : 0.5
Image {
anchors.horizontalCenter: nameText.horizontalCenter
width: 64; height: 64
@@ -68,7 +69,6 @@ Rectangle {
id: nameText
text: name
font.pointSize: 16
- color: wrapper.PathView.isCurrentItem ? "red" : "black"
}
}
}