aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Akulich <akulichalexander@gmail.com>2018-09-11 11:40:38 +0300
committerAlexandr Akulich <akulichalexander@gmail.com>2018-09-11 14:48:28 +0000
commitaeba13ec77a908d0d767a6c3a70891efd05116fa (patch)
treeac24dabe669191f1dc07bca2a8c6646286288c02
parent87cf774d4e91472d9630b4ae9efbf0a11f3d3a48 (diff)
Doc: Fix 'reversible' Transition code snippet
The Transition documentation refers to this snippet as an example of 'reversible' property usage, but the code actually misses it and demonstrate the last sentence: "If the transition did not set the to and reversible values..." Change-Id: I54da7dc2886006d8509891ba982f57b1ea97ebf0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/quick/doc/snippets/qml/transition-reversible.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/doc/snippets/qml/transition-reversible.qml b/src/quick/doc/snippets/qml/transition-reversible.qml
index 58a88621c4..3ddbd0fa3d 100644
--- a/src/quick/doc/snippets/qml/transition-reversible.qml
+++ b/src/quick/doc/snippets/qml/transition-reversible.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.
@@ -65,6 +65,8 @@ Rectangle {
//! [sequential animations]
transitions: Transition {
+ to: "brighter"
+ reversible: true
SequentialAnimation {
PropertyAnimation { property: "x"; duration: 1000 }
ColorAnimation { duration: 1000 }