From bdfca0f10064818c35d4c550ac15b38be2176e94 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 20 Dec 2012 13:01:28 +0100 Subject: [PATCH] added a quick comparison between spinners --- data/qml/SpinnerTest.qml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 data/qml/SpinnerTest.qml diff --git a/data/qml/SpinnerTest.qml b/data/qml/SpinnerTest.qml new file mode 100644 index 000000000..217b4dbcf --- /dev/null +++ b/data/qml/SpinnerTest.qml @@ -0,0 +1,34 @@ +import QtQuick 1.1 +import "tomahawkimports" + +Rectangle { +width: 1400 +height: 900 +color: "black" + +BusyIndicator { + anchors.centerIn: parent + anchors.horizontalCenterOffset: 200 + height: 200 + width: 200 +} + +Image { + id: svgSpinner + source: "../images/loading-animation.svg" + smooth: true + height: 200 + width: 200 + anchors.centerIn: parent + anchors.horizontalCenterOffset: -200 + + Timer { + running: true + repeat: true + interval: 200 + onTriggered: svgSpinner.rotation += 360 / 12 + } +} + + +}