summaryrefslogtreecommitdiffstats
path: root/qml/BusyIndicator.qml
diff options
context:
space:
mode:
authorLasse Räihä <lasse.raiha@qt.io>2017-09-21 14:44:43 +0300
committerSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-11-22 10:42:41 +0000
commitc0a91aab1a5e5ac4a0e6effcd410e43bd8b6cc16 (patch)
tree60c54024bfbab4f5ef31aa684b2562aea6648259 /qml/BusyIndicator.qml
parentd2ec2dc7034c31e3602003b55d5f2a2c98983651 (diff)
Launcher update
Task-number: QTBUG-63091 Done-with: Juho Annunen <juho.annunen@qt.io> Change-Id: I4395becf8539e95ab3fa90b03e71565a2d087398 Reviewed-by: Kari Oikarinen <kari.oikarinen@qt.io>
Diffstat (limited to 'qml/BusyIndicator.qml')
-rw-r--r--qml/BusyIndicator.qml44
1 files changed, 37 insertions, 7 deletions
diff --git a/qml/BusyIndicator.qml b/qml/BusyIndicator.qml
index 3cf7cf0..f590ea9 100644
--- a/qml/BusyIndicator.qml
+++ b/qml/BusyIndicator.qml
@@ -27,18 +27,48 @@
**
****************************************************************************/
import QtQuick 2.4
+import Circle 1.0
-Image {
+CircularIndicator {
+ id: circularIndicator
+ //anchors.fill: parent
height: width
- source: "images/spinner.png"
- sourceSize.width: Math.min(127, width)
- sourceSize.height: Math.min(127, height)
+ startAngle: 0 //speedometer.minValueAngle
+ endAngle: 360 //speedometer.maxValueAngle
+ minimumValue: 0
+ maximumValue: 360//speedometer.maximumValue
+ value: 180//speedometer.value
+ padding: 23
+ backgroundColor: "#848895"
+ progressColor: "#41cd52"
+ lineWidth: width * 0.1
- RotationAnimator on rotation {
- duration: 800
+
+ SequentialAnimation {
+ running: true
+ loops: Animation.Infinite
+ NumberAnimation {
+ target: circularIndicator
+ property: "value"
+ from: 0
+ to: 360
+ duration: 1000
+ }
+ NumberAnimation {
+ target: circularIndicator
+ property: "startAngle"
+ from: 0
+ to: 360
+ duration: 1000
+ }
+ ScriptAction {
+ script: circularIndicator.startAngle = 0
+ }
+ }
+ RotationAnimator on rotation{
loops: Animation.Infinite
+ duration: 5000
from: 0
to: 360
- running: visible
}
}