aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-10-16 15:04:23 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-10-23 15:05:07 +0200
commiteb1da874f275279546701f2be7e7db08e8d36e0d (patch)
tree4f5b840b42bfdf2328051e86b851f47e77a9c0c9 /tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
parentc31c4068f87bb65328b4d25ca0c8d428ab8f74a6 (diff)
Remove usage of deprecated QStandardPaths::DataLocation
Task-number: QTBUG-87037 Change-Id: I1969dba3b6edfaf202a316576674efed481bb1e4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlengine/tst_qqmlengine.cpp')
-rw-r--r--tests/auto/qml/qqmlengine/tst_qqmlengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
index 1e9b6434c4..6c00494189 100644
--- a/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
+++ b/tests/auto/qml/qqmlengine/tst_qqmlengine.cpp
@@ -272,7 +272,7 @@ void tst_qqmlengine::offlineStoragePath()
QQmlEngine engine;
- QString dataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
+ QString dataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
QCOMPARE(dataLocation.isEmpty(), engine.offlineStoragePath().isEmpty());
@@ -297,7 +297,7 @@ void tst_qqmlengine::offlineDatabaseStoragePath()
qApp->setOrganizationDomain("www.qt-project.org");
QQmlEngine engine;
- QString dataLocation = QStandardPaths::writableLocation(QStandardPaths::DataLocation);
+ QString dataLocation = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
const QString databaseName = QLatin1String("foo");
QString databaseLocation = engine.offlineStorageDatabaseFilePath(databaseName);
QCOMPARE(dataLocation.isEmpty(), databaseLocation.isEmpty());