blob: b679da2a990168ee78abdaeebd031ae15f7d146c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import QtQuick 2.0
AnimatedImage {
property int currentFrameChangeCount: 0
property int frameChangeCount: 0
source: "stickman.gif"
onCurrentFrameChanged: if (currentFrame > 0) ++currentFrameChangeCount;
onFrameChanged: if (currentFrame > 0) ++frameChangeCount;
function scriptedSetCurrentFrame(frame) {
currentFrame = frame;
}
}
|