aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepixmapcache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativepixmapcache')
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro1
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp9
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
index 88871e9523..aaf94ea291 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
+++ b/tests/auto/declarative/qdeclarativepixmapcache/qdeclarativepixmapcache.pro
@@ -22,3 +22,4 @@ symbian: {
CONFIG += parallel_test
+QT += core-private gui-private declarative-private
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
index ead2c4a123..e810e1e8a8 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
+++ b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
@@ -289,18 +289,19 @@ void tst_qdeclarativepixmapcache::parallel()
void tst_qdeclarativepixmapcache::massive()
{
+ QDeclarativeEngine engine;
QUrl url = thisfile.resolved(QUrl("data/massive.png"));
// Confirm that massive images remain in the cache while they are
// in use by the application.
{
qint64 cachekey = 0;
- QDeclarativePixmap p(0, url);
+ QDeclarativePixmap p(&engine, url);
QVERIFY(p.isReady());
QVERIFY(p.pixmap().size() == QSize(10000, 1000));
cachekey = p.pixmap().cacheKey();
- QDeclarativePixmap p2(0, url);
+ QDeclarativePixmap p2(&engine, url);
QVERIFY(p2.isReady());
QVERIFY(p2.pixmap().size() == QSize(10000, 1000));
@@ -312,13 +313,13 @@ void tst_qdeclarativepixmapcache::massive()
{
qint64 cachekey = 0;
{
- QDeclarativePixmap p(0, url);
+ QDeclarativePixmap p(&engine, url);
QVERIFY(p.isReady());
QVERIFY(p.pixmap().size() == QSize(10000, 1000));
cachekey = p.pixmap().cacheKey();
}
- QDeclarativePixmap p2(0, url);
+ QDeclarativePixmap p2(&engine, url);
QVERIFY(p2.isReady());
QVERIFY(p2.pixmap().size() == QSize(10000, 1000));