summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-05-07 03:44:36 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-05-07 03:44:36 (GMT)
commit1d1acbdf3161bc5d79ddd73704687f1c604c766a (patch)
treec452310d9c0fcc244efaf1ee2bfe50ba28b16a2e /src/declarative/fx
parent3a6b38c5546df68211e9bd4dceafa6382a18f87a (diff)
downloadQt-1d1acbdf3161bc5d79ddd73704687f1c604c766a.zip
Qt-1d1acbdf3161bc5d79ddd73704687f1c604c766a.tar.gz
Qt-1d1acbdf3161bc5d79ddd73704687f1c604c766a.tar.bz2
Viewing the same image twice showed no image the second time.
Diffstat (limited to 'src/declarative/fx')
-rw-r--r--src/declarative/fx/qfximage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp
index 835a4ff..657e9a5 100644
--- a/src/declarative/fx/qfximage.cpp
+++ b/src/declarative/fx/qfximage.cpp
@@ -880,6 +880,17 @@ void QFxImage::setSource(const QString &url)
if (url.isEmpty()) {
setPixmap(QPixmap());
d->status = Idle;
+ d->progress = 1.0;
+ setImplicitWidth(0);
+ setImplicitHeight(0);
+#if defined(QFX_RENDER_OPENGL)
+ d->_texDirty = true;
+ d->_tex.clear();
+#endif
+ emit statusChanged(d->status);
+ emit sourceChanged(d->source);
+ emit progressChanged(1.0);
+ update();
} else {
d->status = Loading;
if (d->url.path().endsWith(QLatin1String(".sci"))) {