From eb1da874f275279546701f2be7e7db08e8d36e0d Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Fri, 16 Oct 2020 15:04:23 +0200 Subject: Remove usage of deprecated QStandardPaths::DataLocation Task-number: QTBUG-87037 Change-Id: I1969dba3b6edfaf202a316576674efed481bb1e4 Reviewed-by: Mitch Curtis --- tests/auto/qml/qqmlengine/tst_qqmlengine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/qml/qqmlengine') 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()); -- cgit v1.2.3