Add forked RadialBar module

This commit is contained in:
miruka
2019-11-06 15:30:51 -04:00
parent 991fef637b
commit 96839ea69a
3 changed files with 6 additions and 8 deletions

3
.gitmodules vendored
View File

@@ -1,3 +1,6 @@
[submodule "submodules/qsyncable"]
path = submodules/qsyncable
url = https://github.com/benlau/qsyncable
[submodule "submodules/RadialBarDemo"]
path = submodules/RadialBarDemo
url = https://github.com/mirukan/RadialBarDemo/

View File

@@ -3,6 +3,8 @@ import RadialBar 1.0
RadialBar {
id: bar
implicitWidth: 96
implicitHeight: implicitWidth
foregroundColor: theme.controls.circleProgressBar.background
progressColor: theme.controls.circleProgressBar.foreground
dialWidth: theme.controls.circleProgressBar.thickness
@@ -14,7 +16,6 @@ RadialBar {
value: 0
showText: true
suffixText: qsTr("%")
textFont.pixelSize: theme ? theme.fontSize.big : 22
textColor: theme ? theme.controls.circleProgressBar.text : "white"
@@ -41,13 +42,6 @@ RadialBar {
when: bar.indeterminate
}
Binding {
target: bar
property: "suffixText"
value: ""
when: bar.indeterminate
}
RotationAnimator on rotation {
running: bar.indeterminate
from: 0