aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml')
-rw-r--r--tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml b/tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml
new file mode 100644
index 0000000000..2faca20388
--- /dev/null
+++ b/tests/manual/quickcontrols/gifs/data/qtquickcontrols-progressbar.qml
@@ -0,0 +1,34 @@
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Window
+import QtQuick.Controls
+
+Window {
+ width: progressBar.implicitWidth
+ height: 64
+ visible: true
+
+ property alias progressBar: progressBar
+
+ ProgressBar {
+ id: progressBar
+ value: 0.5
+ anchors.centerIn: parent
+
+ Timer {
+ running: true
+ interval: 500
+ onTriggered: animation.start()
+ }
+
+ NumberAnimation {
+ id: animation
+ target: progressBar
+ property: "value"
+ to: 1
+ duration: 2000
+ }
+ }
+}