app/resources/qml/Components/FancyBusyIndicator.qml

62 lines
1.6 KiB
QML
Raw Permalink Normal View History

2019-05-11 15:21:43 +02:00
/*
blueROCK - for digital rock
Copyright (C) 2019 Dorian Zedler
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.3
import QtQuick.Controls 2.4
2020-03-20 17:14:23 +01:00
//import QtQuick.Controls.Styles 1.4
BusyIndicator {
id: control
property double animationSpeed: 1000
property double formFactor: 4.5
property color lineColor: "#21be2b"
contentItem: Item {
implicitWidth: 64
implicitHeight: 64
Item {
id: item
anchors.fill: parent
2021-06-06 00:15:54 +02:00
RotationAnimation {
target: blueRockHoldIcon
running: control.running
2021-06-06 00:15:54 +02:00
duration: control.animationSpeed
loops: Animation.Infinite
2021-06-06 00:15:54 +02:00
from: 0
to: 360
easing.type: Easing.InOutQuad
}
2021-06-06 00:15:54 +02:00
Image {
id: blueRockHoldIcon
anchors.fill: parent
2021-06-06 00:15:54 +02:00
source: "qrc:/icons/blueRockHold.png"
mipmap: true
}
2021-06-06 00:15:54 +02:00
}
}
}