Add forked RadialBar module
This commit is contained in:
parent
991fef637b
commit
96839ea69a
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
||||||
[submodule "submodules/qsyncable"]
|
[submodule "submodules/qsyncable"]
|
||||||
path = submodules/qsyncable
|
path = submodules/qsyncable
|
||||||
url = https://github.com/benlau/qsyncable
|
url = https://github.com/benlau/qsyncable
|
||||||
|
[submodule "submodules/RadialBarDemo"]
|
||||||
|
path = submodules/RadialBarDemo
|
||||||
|
url = https://github.com/mirukan/RadialBarDemo/
|
||||||
|
|
|
@ -3,6 +3,8 @@ import RadialBar 1.0
|
||||||
|
|
||||||
RadialBar {
|
RadialBar {
|
||||||
id: bar
|
id: bar
|
||||||
|
implicitWidth: 96
|
||||||
|
implicitHeight: implicitWidth
|
||||||
foregroundColor: theme.controls.circleProgressBar.background
|
foregroundColor: theme.controls.circleProgressBar.background
|
||||||
progressColor: theme.controls.circleProgressBar.foreground
|
progressColor: theme.controls.circleProgressBar.foreground
|
||||||
dialWidth: theme.controls.circleProgressBar.thickness
|
dialWidth: theme.controls.circleProgressBar.thickness
|
||||||
|
@ -14,7 +16,6 @@ RadialBar {
|
||||||
value: 0
|
value: 0
|
||||||
|
|
||||||
showText: true
|
showText: true
|
||||||
suffixText: qsTr("%")
|
|
||||||
textFont.pixelSize: theme ? theme.fontSize.big : 22
|
textFont.pixelSize: theme ? theme.fontSize.big : 22
|
||||||
textColor: theme ? theme.controls.circleProgressBar.text : "white"
|
textColor: theme ? theme.controls.circleProgressBar.text : "white"
|
||||||
|
|
||||||
|
@ -41,13 +42,6 @@ RadialBar {
|
||||||
when: bar.indeterminate
|
when: bar.indeterminate
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
|
||||||
target: bar
|
|
||||||
property: "suffixText"
|
|
||||||
value: ""
|
|
||||||
when: bar.indeterminate
|
|
||||||
}
|
|
||||||
|
|
||||||
RotationAnimator on rotation {
|
RotationAnimator on rotation {
|
||||||
running: bar.indeterminate
|
running: bar.indeterminate
|
||||||
from: 0
|
from: 0
|
||||||
|
|
1
submodules/RadialBarDemo
Submodule
1
submodules/RadialBarDemo
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ec3af1a087a0c4c0c31709ed94b7e939d3e51400
|
Loading…
Reference in New Issue
Block a user