aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-02-05 18:12:42 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-02-09 21:46:43 +0100
commitb17ccb8af9f9149d100e391af9e1c25e97a962d0 (patch)
tree2ed22a5c36b4e938a801500b7bd8e2773b9fe503 /tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp
parentdab0d62b655ce9a476993de2558a573a5066288c (diff)
Use QLibraryInfo::QmlImportsPath rather than Qml2ImportsPath
The "2" is meaningless and there is a better name available now. Task-number: QTBUG-85064 Change-Id: I65d26b06712ed7dcf2825f16dffaa6060dd86985 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp')
-rw-r--r--tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp
index 41b52a0a6b..04f9b1fe0c 100644
--- a/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp
+++ b/tests/auto/qml/debugger/qqmlpreview/tst_qqmlpreview.cpp
@@ -245,18 +245,18 @@ void tst_QQmlPreview::blacklist()
blacklist2.blacklist(":/qt-project.org");
blacklist2.blacklist(":/QtQuick/Controls/Styles");
blacklist2.blacklist(":/ExtrasImports/QtQuick/Controls/Styles");
- blacklist2.blacklist(QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath));
+ blacklist2.blacklist(QLibraryInfo::path(QLibraryInfo::QmlImportsPath));
blacklist2.blacklist("/home/ulf/.local/share/QtProject/Qml Runtime/configuration.qml");
blacklist2.blacklist("/usr/share");
blacklist2.blacklist("/usr/share/QtProject/Qml Runtime/configuration.qml");
- QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath)));
+ QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::QmlImportsPath)));
blacklist2.blacklist("/usr/local/share/QtProject/Qml Runtime/configuration.qml");
blacklist2.blacklist("qml");
blacklist2.blacklist(""); // This should not remove all other paths.
- QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath) +
+ QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::QmlImportsPath) +
"/QtQuick/Window.2.0"));
- QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath)));
+ QVERIFY(blacklist2.isBlacklisted(QLibraryInfo::path(QLibraryInfo::QmlImportsPath)));
QVERIFY(blacklist2.isBlacklisted("/usr/share/QtProject/Qml Runtime/configuration.qml"));
QVERIFY(blacklist2.isBlacklisted("/usr/share/stuff"));
QVERIFY(blacklist2.isBlacklisted(""));