Debian Codegraph @

src/xmpsolve/LoadingIndicator.qml

raw
1 import QtQuick 2.1
2 import QtQuick.Layouts 1.0
3
4 Rectangle {
5
6 color: "#aaeaaa"
7
8 width: parent.width
9 height: parent.height
10
11 ColumnLayout {
12
13 anchors.fill: parent
14
15 Image {
16 id: loading
17 source: "../images/loading.png"
18 fillMode: Image.PreserveAspectFit
19
20 Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
21
22 onVisibleChanged: {
23 loading.width = 128;
24 loading.height = 128;
25 }
26
27 NumberAnimation on rotation {
28 from: 0
29 to: 360
30 running: loading.visible == true
31 loops: Animation.Infinite
32 duration: 900
33 }
34 }
35
36 Text {
37 text: "MPSolve is working for you ..."
38 font.pointSize: 16
39 Layout.alignment: Qt.AlignHCenter
40 }
41
42 }
43 }