52 Accessible.role: Accessible.Graphic
53 Accessible.ignored: Accessible.name.length === 0
85 property int fillMode: Image.Stretch
91 property int fadeDuration: 250
96 readonly property bool running: animation.running
104 property bool animationEnabled: true
155 property alias sourceSize: __priv.sourceSize
165 readonly property int status: __priv.loadingImage ? __priv.loadingImage.status : Image.Null
177 property bool smooth: true
188 property size sourceSize: Qt.size(undefined, undefined)
190 property Image currentImage: image1
191 property Image nextImage: image2
192 property Image loadingImage: currentImage
194 onSourceSizeChanged: {
196 image1.sourceSize = sourceSize;
197 image2.sourceSize = sourceSize;
200 function swapImages() {
202 __priv.currentImage.z = 0;
203 __priv.nextImage.z = 1;
204 if (root.animationEnabled)
208 var oldImage = __priv.currentImage;
209 __priv.currentImage = __priv.nextImage;
210 __priv.nextImage = oldImage;
216 if (__priv.currentImage === null) {
217 __priv.currentImage = image1;
218 __priv.nextImage = image2;
226 if (root.source ==
"") {
227 __priv.currentImage.source =
"";
228 __priv.nextImage.source =
"";
229 __priv.loadingImage = null;
233 if (__priv.currentImage.source ==
"") {
235 __priv.currentImage.source = root.source;
236 __priv.loadingImage = __priv.currentImage;
242 __priv.nextImage.opacity = 0.0;
243 __priv.nextImage.source = root.source;
244 __priv.loadingImage = __priv.nextImage;
248 if (__priv.nextImage.status === Image.Ready || __priv.nextImage.source ===
"")
254 target: __priv.nextImage
256 function onOpacityChanged() {
257 if (__priv.nextImage.opacity == 1.0)
261 function onStatusChanged() {
262 if (__priv.nextImage.status === Image.Ready)
272 fillMode: root.fillMode
276 Accessible.ignored:
true
284 fillMode: root.fillMode
288 Accessible.ignored:
true
293 target: __priv.nextImage
296 duration: root.fadeDuration
301 __priv.nextImage.source =
"";