diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-05 18:12:42 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-02-09 21:46:43 +0100 |
commit | b17ccb8af9f9149d100e391af9e1c25e97a962d0 (patch) | |
tree | 2ed22a5c36b4e938a801500b7bd8e2773b9fe503 /tests/auto/qml/qmllint | |
parent | dab0d62b655ce9a476993de2558a573a5066288c (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/qmllint')
-rw-r--r-- | tests/auto/qml/qmllint/tst_qmllint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qmllint/tst_qmllint.cpp b/tests/auto/qml/qmllint/tst_qmllint.cpp index dc84e1c535..1486a9e1d3 100644 --- a/tests/auto/qml/qmllint/tst_qmllint.cpp +++ b/tests/auto/qml/qmllint/tst_qmllint.cpp @@ -155,7 +155,7 @@ void TestQmllint::qmltypes_data() { QTest::addColumn<QString>("file"); - const QString importsPath = QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath); + const QString importsPath = QLibraryInfo::path(QLibraryInfo::QmlImportsPath); QDirIterator it(importsPath, { "*.qmltypes" }, QDir::Files, QDirIterator::Subdirectories); while (it.hasNext()) @@ -359,7 +359,7 @@ QString TestQmllint::runQmllint(const QString &fileToLint, std::function<void(QProcess &)> handleResult, const QStringList &extraArgs) { - auto qmlImportDir = QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath); + auto qmlImportDir = QLibraryInfo::path(QLibraryInfo::QmlImportsPath); QStringList args; args << (QFileInfo(fileToLint).isAbsolute() ? fileToLint : testFile(fileToLint)) |