@@ -16,6 +16,7 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import Cursor 1.1
18import Cursor 1.1
20MousePointer {
21MousePointer {
21 id: mousePointer
22 id: mousePointer
@@ -26,19 +27,33 @@ MousePointer {
26 cursorName: mousePointer.cursorName
27 cursorName: mousePointer.cursorName
31+ active: mousePointer.visible && imageInfo.frameCount > 1
29− AnimatedSprite {
32+ sourceComponent: AnimatedSprite {
30− x: -imageInfo.hotspot.x
33+ x: -imageInfo.hotspot.x
31− y: -imageInfo.hotspot.y
34+ y: -imageInfo.hotspot.y
32− source: "image://cursor/" + mousePointer.themeName + "/" + mousePointer.cursorName
35+ source: "image://cursor/" + mousePointer.themeName + "/" + mousePointer.cursorName
34− interpolate: false
37+ interpolate: false
36− width: imageInfo.frameWidth
39+ width: imageInfo.frameWidth
37− height: imageInfo.frameHeight
40+ height: imageInfo.frameHeight
39− frameCount: imageInfo.frameCount
42+ frameCount: imageInfo.frameCount
40− frameDuration: imageInfo.frameDuration
43+ frameDuration: imageInfo.frameDuration
41− frameWidth: imageInfo.frameWidth
44+ frameWidth: imageInfo.frameWidth
42− frameHeight: imageInfo.frameHeight
45+ frameHeight: imageInfo.frameHeight
47+ running: Powerd.status === Powerd.On
52+ active: mousePointer.visible && imageInfo.frameCount === 1
53+ sourceComponent: Image {
54+ x: -imageInfo.hotspot.x
55+ y: -imageInfo.hotspot.y
56+ source: "image://cursor/" + mousePointer.themeName + "/" + mousePointer.cursorName