From aeba13ec77a908d0d767a6c3a70891efd05116fa Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Tue, 11 Sep 2018 11:40:38 +0300 Subject: 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 --- src/quick/doc/snippets/qml/transition-reversible.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/quick/doc') 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 } -- cgit v1.2.3