Compare commits

..

No commits in common. "5240f826c55090f95b5fdc48a1e616e744ae4453" and "7716ab02a6386f92e6957e7ec730df82ce0a2286" have entirely different histories.

4 changed files with 3 additions and 34 deletions

View File

@ -13,13 +13,6 @@ ProgressBar{
id:d id:d
property real _radius: strokeWidth/2 property real _radius: strokeWidth/2
} }
onIndeterminateChanged:{
if(!indeterminate){
animator_x.duration = 0
rect_progress.x = 0
animator_x.duration = 888
}
}
background: Rectangle { background: Rectangle {
implicitWidth: 150 implicitWidth: 150
implicitHeight: control.strokeWidth implicitHeight: control.strokeWidth
@ -41,7 +34,6 @@ ProgressBar{
radius: d._radius radius: d._radius
color: control.color color: control.color
PropertyAnimation on x { PropertyAnimation on x {
id:animator_x
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
from: -rect_progress.width from: -rect_progress.width
to:control.width+rect_progress.width to:control.width+rect_progress.width
@ -65,3 +57,4 @@ ProgressBar{
} }
} }
} }

View File

@ -19,13 +19,6 @@ ProgressBar{
border.color: control.backgroundColor border.color: control.backgroundColor
border.width: control.strokeWidth border.width: control.strokeWidth
} }
onIndeterminateChanged:{
if(!indeterminate){
animator_r.duration = 0
layout_item.rotation = 0
animator_r.duration = 888
}
}
QtObject{ QtObject{
id:d id:d
property real _radius: control.width/2-control.strokeWidth/2 property real _radius: control.width/2-control.strokeWidth/2
@ -41,9 +34,7 @@ ProgressBar{
} }
} }
contentItem: Item { contentItem: Item {
id:layout_item
RotationAnimation on rotation { RotationAnimation on rotation {
id:animator_r
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
from: 0 from: 0
to:360 to:360

View File

@ -13,13 +13,6 @@ ProgressBar{
id:d id:d
property real _radius: strokeWidth/2 property real _radius: strokeWidth/2
} }
onIndeterminateChanged:{
if(!indeterminate){
animator_x.duration = 0
rect_progress.x = 0
animator_x.duration = 888
}
}
background: Rectangle { background: Rectangle {
implicitWidth: 150 implicitWidth: 150
implicitHeight: control.strokeWidth implicitHeight: control.strokeWidth
@ -41,7 +34,6 @@ ProgressBar{
radius: d._radius radius: d._radius
color: control.color color: control.color
PropertyAnimation on x { PropertyAnimation on x {
id:animator_x
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
from: -rect_progress.width from: -rect_progress.width
to:control.width+rect_progress.width to:control.width+rect_progress.width
@ -65,3 +57,4 @@ ProgressBar{
} }
} }
} }

View File

@ -19,13 +19,6 @@ ProgressBar{
border.color: control.backgroundColor border.color: control.backgroundColor
border.width: control.strokeWidth border.width: control.strokeWidth
} }
onIndeterminateChanged:{
if(!indeterminate){
animator_r.duration = 0
layout_item.rotation = 0
animator_r.duration = 888
}
}
QtObject{ QtObject{
id:d id:d
property real _radius: control.width/2-control.strokeWidth/2 property real _radius: control.width/2-control.strokeWidth/2
@ -41,9 +34,7 @@ ProgressBar{
} }
} }
contentItem: Item { contentItem: Item {
id:layout_item
RotationAnimation on rotation { RotationAnimation on rotation {
id:animator_r
running: control.indeterminate && control.visible running: control.indeterminate && control.visible
from: 0 from: 0
to:360 to:360
@ -80,3 +71,4 @@ ProgressBar{
anchors.centerIn: parent anchors.centerIn: parent
} }
} }