mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-01 09:53:57 +02:00
added a quick comparison between spinners
This commit is contained in:
34
data/qml/SpinnerTest.qml
Normal file
34
data/qml/SpinnerTest.qml
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user