From fa8a4beb157f82e02cf8471ade7da0faee7a9fa1 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Tue, 26 Feb 2013 13:50:51 -0800 Subject: Fix remote image loading for AnimatedSprite The Sprite generated behind the scenes had no QmlEngine associated, and the engine is needed by QQuickPixmap for async loading. Task-number: QTBUG-28086 Change-Id: Ibf3b03c54b339fe8f44201dc6fcb507e5274bbec Reviewed-by: Gunnar Sletta --- src/quick/items/qquickspriteengine.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickspriteengine.cpp') diff --git a/src/quick/items/qquickspriteengine.cpp b/src/quick/items/qquickspriteengine.cpp index 4c7be3bce9..aa93d31cf7 100644 --- a/src/quick/items/qquickspriteengine.cpp +++ b/src/quick/items/qquickspriteengine.cpp @@ -328,6 +328,7 @@ QQuickPixmap::Status QQuickSpriteEngine::status()//Composed status of all Sprite null = loading = ready = 0; foreach (QQuickSprite* s, m_sprites) { switch (s->m_pix.status()) { + // ### Maybe add an error message here, because this null shouldn't be reached but when it does, the image fails without an error message. case QQuickPixmap::Null : null++; break; case QQuickPixmap::Loading : loading++; break; case QQuickPixmap::Error : return QQuickPixmap::Error; -- cgit v1.2.3