diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2017-10-03 15:40:01 +0200 |
---|---|---|
committer | Nico Vertriest <nico.vertriest@qt.io> | 2017-10-11 08:49:44 +0000 |
commit | bca35ce54a541991ff1e36a9bb2e0d436c757ed9 (patch) | |
tree | 2035aa2a1a96018907362fff09d71d10f92a1810 /examples/quickcontrols/extras/dashboard/qml/ValueSource.qml | |
parent | f9c410f619c1019fc361e230df0e4d2a2259e8e9 (diff) | |
download | qtquickcontrols-bca35ce54a541991ff1e36a9bb2e0d436c757ed9.tar.gz |
Doc: add documentation to Dashboard examplev5.10.0-beta2
Task-number: QTBUG-60648
Change-Id: I79b9fdfde18041d95b7aa422bfb4d188ed907589
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/quickcontrols/extras/dashboard/qml/ValueSource.qml')
-rw-r--r-- | examples/quickcontrols/extras/dashboard/qml/ValueSource.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/quickcontrols/extras/dashboard/qml/ValueSource.qml b/examples/quickcontrols/extras/dashboard/qml/ValueSource.qml index 7225be48..44913621 100644 --- a/examples/quickcontrols/extras/dashboard/qml/ValueSource.qml +++ b/examples/quickcontrols/extras/dashboard/qml/ValueSource.qml @@ -49,7 +49,7 @@ ****************************************************************************/ import QtQuick 2.2 - +//! [0] Item { id: valueSource property real kph: 0 @@ -79,6 +79,7 @@ Item { property int turnSignal: gear == "P" && !start ? randomDirection() : -1 property real temperature: 0.6 property bool start: true +//! [0] function randomDirection() { return Math.random() > 0.5 ? Qt.LeftArrow : Qt.RightArrow; @@ -101,7 +102,7 @@ Item { SequentialAnimation { loops: Animation.Infinite - +//! [1] ParallelAnimation { NumberAnimation { target: valueSource @@ -120,6 +121,7 @@ Item { duration: 3000 } } +//! [1] ParallelAnimation { // We changed gears so we lost a bit of speed. NumberAnimation { |