summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
index 9682f4da..21f92359 100644
--- a/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
+++ b/tests/auto/declarative/qdeclarativepixmapcache/tst_qdeclarativepixmapcache.cpp
@@ -46,7 +46,7 @@
#include <QNetworkReply>
#include "testhttpserver.h"
-#ifndef QT_NO_CONCURRENT
+#ifdef QT_CONCURRENT_LIB
#include <qtconcurrentrun.h>
#include <qfuture.h>
#endif
@@ -78,7 +78,7 @@ private slots:
void massive();
void cancelcrash();
void shrinkcache();
-#ifndef QT_NO_CONCURRENT
+#ifdef QT_CONCURRENT_LIB
void networkCrash();
#endif
private:
@@ -360,7 +360,7 @@ void tst_qdeclarativepixmapcache::shrinkcache()
}
}
-#ifndef QT_NO_CONCURRENT
+#ifdef QT_CONCURRENT_LIB
void createNetworkServer()
{
@@ -371,7 +371,6 @@ void createNetworkServer()
eventLoop.exec();
}
-#ifndef QT_NO_CONCURRENT
// QT-3957
void tst_qdeclarativepixmapcache::networkCrash()
{
@@ -386,7 +385,6 @@ void tst_qdeclarativepixmapcache::networkCrash()
}
future.cancel();
}
-#endif
#endif