summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-04-26 10:00:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-02 09:33:35 +0200
commitd0c01c581a69649d189a4febea90be050100322f (patch)
treef2642c9d032718d4f8befcbe2afe5b435bc82b64 /tests
parent951f97722792fee9601425120f0b64408ec18a4a (diff)
QtQuick1: Fix deprecation warnings.
Introduced by qtbase:0df1c9f1fa04c06d6105de3f312c6c752a58ad70 Change-Id: I61e330707a49efd09bad0efda386712fba207c8a Reviewed-by: Alan Alpert <alan.alpert@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 77286559..cc8dac40 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>
@@ -180,7 +180,7 @@ void tst_qdeclarativeengine::offlineStoragePath()
QDeclarativeEngine engine;
- QDir dir(QDesktopServices::storageLocation(QDesktopServices::DataLocation));
+ QDir dir(QStandardPaths::standardLocations(QStandardPaths::DataLocation).front());
dir.mkpath("QML");
dir.cd("QML");
dir.mkpath("OfflineStorage");