forked from qt-creator/qt-creator
All: Replace deprecated QLibraryInfo::location
... by QLibraryInfo::path() which exists since 6.0 Change-Id: I0e1e071e0d279ddaf1f1027a0e6ce350ab21739a Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -73,7 +73,7 @@ void tst_Check::initTestCase()
|
||||
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
|
||||
|
||||
PathsAndLanguages lPaths;
|
||||
QStringList paths(QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath));
|
||||
QStringList paths(QLibraryInfo::path(QLibraryInfo::Qml2ImportsPath));
|
||||
for (auto p: paths)
|
||||
lPaths.maybeInsert(Utils::FilePath::fromString(p), Dialect::Qml);
|
||||
ModelManagerInterface::importScan(ModelManagerInterface::workingCopy(), lPaths,
|
||||
|
||||
Reference in New Issue
Block a user