BusyIndicator smooth is switch off when animating
Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
This commit is contained in:
parent
72f4b7c778
commit
45b5b480f9
@ -21,7 +21,7 @@ import QtQuick 1.0
|
|||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: busy
|
||||||
|
|
||||||
// Common API
|
// Common API
|
||||||
property bool running: false
|
property bool running: false
|
||||||
@ -36,17 +36,17 @@ Item {
|
|||||||
id: widget
|
id: widget
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: root.width
|
width: busy.width
|
||||||
height: root.height
|
height: busy.height
|
||||||
smooth: true
|
smooth: !running
|
||||||
svg: PlasmaCore.Svg { imagePath: ("widgets/busywidget") }
|
svg: PlasmaCore.Svg { imagePath: "widgets/busywidget" }
|
||||||
|
|
||||||
RotationAnimation on rotation {
|
RotationAnimation on rotation {
|
||||||
from: 0
|
from: 0
|
||||||
to: 360
|
to: 360
|
||||||
target: widget
|
target: widget
|
||||||
duration: 1500
|
duration: 1500
|
||||||
running: root.running
|
running: busy.running
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,8 +55,8 @@ Item {
|
|||||||
id: label
|
id: label
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
verticalCenter: root.verticalCenter
|
verticalCenter: busy.verticalCenter
|
||||||
horizontalCenter: root.horizontalCenter
|
horizontalCenter: busy.horizontalCenter
|
||||||
}
|
}
|
||||||
color: theme.textColor
|
color: theme.textColor
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user