diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-01-12 14:19:45 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-01-12 14:52:48 (GMT) |
commit | 4f7ebc24de5496c468e38b36aaba3ad3d877198a (patch) | |
tree | 71db4b6651c127dbcf246b39ce63e563e6ca11ff /tests/auto/qabstractnetworkcache | |
parent | 30ea9ef54bc54a122263dd3174c5ee8b70355088 (diff) | |
download | Qt-4f7ebc24de5496c468e38b36aaba3ad3d877198a.zip Qt-4f7ebc24de5496c468e38b36aaba3ad3d877198a.tar.gz Qt-4f7ebc24de5496c468e38b36aaba3ad3d877198a.tar.bz2 |
Autotest: don't depend on QtGui just because of QDesktopServices::storageLocation
Task-number: QTBUG-7060
Reviewed-by: Trust Me
Diffstat (limited to 'tests/auto/qabstractnetworkcache')
-rw-r--r-- | tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro | 1 | ||||
-rw-r--r-- | tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro b/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro index 11e340d..a57c56f 100644 --- a/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro +++ b/tests/auto/qabstractnetworkcache/qabstractnetworkcache.pro @@ -1,5 +1,6 @@ load(qttest_p4) QT += network +QT -= gui SOURCES += tst_qabstractnetworkcache.cpp wince*|symbian: { diff --git a/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp b/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp index e5646c1..ac73f08 100644 --- a/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp +++ b/tests/auto/qabstractnetworkcache/tst_qabstractnetworkcache.cpp @@ -41,7 +41,6 @@ #include <QtTest/QtTest> -#include <QtGui/QtGui> #include <QtNetwork/QtNetwork> #include "../../shared/util.h" #include "../network-settings.h" @@ -83,8 +82,7 @@ public: : QNetworkDiskCache(parent) , gotData(false) { - QString location = QDesktopServices::storageLocation(QDesktopServices::CacheLocation) - + QLatin1String("/qnetworkdiskcache/"); + QString location = QDir::tempPath() + QLatin1String("/tst_qnetworkdiskcache/"); setCacheDirectory(location); clear(); } |