fix spinner animation: use delegate id instead of parent.index
This commit is contained in:
parent
af56ae064f
commit
2e1789ba7d
1 changed files with 2 additions and 1 deletions
|
|
@ -132,6 +132,7 @@ PanelWindow {
|
||||||
Repeater {
|
Repeater {
|
||||||
model: 12
|
model: 12
|
||||||
Item {
|
Item {
|
||||||
|
id: spinDelegate
|
||||||
required property int index
|
required property int index
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
|
|
@ -143,7 +144,7 @@ PanelWindow {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
id: _spin
|
id: _spin
|
||||||
target: fx
|
target: fx
|
||||||
property: "_a" + parent.index
|
property: "_a" + spinDelegate.index
|
||||||
from: 0
|
from: 0
|
||||||
to: 2 * Math.PI
|
to: 2 * Math.PI
|
||||||
duration: 1000 + Math.random() * 2000
|
duration: 1000 + Math.random() * 2000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue