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 {
|
||||
model: 12
|
||||
Item {
|
||||
id: spinDelegate
|
||||
required property int index
|
||||
SequentialAnimation {
|
||||
loops: Animation.Infinite
|
||||
|
|
@ -143,7 +144,7 @@ PanelWindow {
|
|||
NumberAnimation {
|
||||
id: _spin
|
||||
target: fx
|
||||
property: "_a" + parent.index
|
||||
property: "_a" + spinDelegate.index
|
||||
from: 0
|
||||
to: 2 * Math.PI
|
||||
duration: 1000 + Math.random() * 2000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue