summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfximagebase.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-14 03:56:05 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-14 03:56:05 (GMT)
commit56693f7d247ee8da6b730b157d1871a1dceab5a8 (patch)
tree20849a97cc14e8d178bc6383c91382c43c0fd87e /src/declarative/fx/qfximagebase.cpp
parente84c2895ff108b43515a5200a646610efea6d8da (diff)
downloadQt-56693f7d247ee8da6b730b157d1871a1dceab5a8.zip
Qt-56693f7d247ee8da6b730b157d1871a1dceab5a8.tar.gz
Qt-56693f7d247ee8da6b730b157d1871a1dceab5a8.tar.bz2
QFxPixmap -> QFxPixmapCache
Diffstat (limited to 'src/declarative/fx/qfximagebase.cpp')
-rw-r--r--src/declarative/fx/qfximagebase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/fx/qfximagebase.cpp b/src/declarative/fx/qfximagebase.cpp
index f96ff6f..66685c2 100644
--- a/src/declarative/fx/qfximagebase.cpp
+++ b/src/declarative/fx/qfximagebase.cpp
@@ -45,7 +45,7 @@
#include <QNetworkReply>
#include <QFile>
#include <QtDeclarative/qmlengine.h>
-#include <QtDeclarative/qfxpixmap.h>
+#include <QtDeclarative/qfxpixmapcache.h>
QT_BEGIN_NAMESPACE
@@ -65,7 +65,7 @@ QFxImageBase::~QFxImageBase()
{
Q_D(QFxImageBase);
if (!d->url.isEmpty())
- QFxPixmap::cancelGet(d->url, this);
+ QFxPixmapCache::cancelGet(d->url, this);
}
QFxImageBase::Status QFxImageBase::status() const
@@ -103,7 +103,7 @@ void QFxImageBase::setSource(const QUrl &url)
return;
if (!d->url.isEmpty())
- QFxPixmap::cancelGet(d->url, this);
+ QFxPixmapCache::cancelGet(d->url, this);
d->url = url;
if (d->progress != 0.0) {
@@ -123,7 +123,7 @@ void QFxImageBase::setSource(const QUrl &url)
update();
} else {
d->status = Loading;
- d->reply = QFxPixmap::get(qmlEngine(this), d->url, &d->pix);
+ d->reply = QFxPixmapCache::get(qmlEngine(this), d->url, &d->pix);
if (d->reply) {
connect(d->reply, SIGNAL(finished()), this, SLOT(requestFinished()));
connect(d->reply, SIGNAL(downloadProgress(qint64,qint64)),
@@ -156,7 +156,7 @@ void QFxImageBase::requestFinished()
if (d->reply->error() != QNetworkReply::NoError)
d->status = Error;
}
- QFxPixmap::find(d->url, &d->pix);
+ QFxPixmapCache::find(d->url, &d->pix);
setImplicitWidth(d->pix.width());
setImplicitHeight(d->pix.height());