aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-10-24 09:03:51 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-24 01:22:31 +0200
commit5ff4b012afaf5de2c196ef5fccfc038733ff020d (patch)
tree47f4e206f640fee9071c90b734c105958d6d27ba /tests
parent210bb5a06811057a8ce2747bd187817a06968042 (diff)
Remove dependency on QDesktopServices deprecated API.
QDesktopServices::storageLocation() is deprecated in favor of QStandardPaths::writableLocation(). Change-Id: I50f73e93f39ded555123656282cf5a02abb972d8 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp b/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
index 06ee4e98cd..6ee14572e3 100644
--- a/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
+++ b/tests/auto/declarative/qdeclarativeengine/tst_qdeclarativeengine.cpp
@@ -45,7 +45,7 @@
#include <QNetworkAccessManager>
#include <QPointer>
#include <QDir>
-#include <QDesktopServices>
+#include <QStandardPaths>
#include <QDebug>
#include <QDeclarativeComponent>
#include <QDeclarativeNetworkAccessManagerFactory>
@@ -177,7 +177,7 @@ void tst_qdeclarativeengine::offlineStoragePath()
QDeclarativeEngine engine;
- QDir dir(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
+ QDir dir(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
dir.mkpath("QML");
dir.cd("QML");
dir.mkpath("OfflineStorage");