diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp index a4cf0967b6c..65011d93986 100644 --- a/src/plugins/autotest/quick/quicktestparser.cpp +++ b/src/plugins/autotest/quick/quicktestparser.cpp @@ -165,8 +165,6 @@ QList QuickTestParser::scanDirectoryForQuickTestQmlFiles(const Fi ModelManagerInterface::importScan(ModelManagerInterface::workingCopy(), paths, qmlJsMM, false /*emitDocumentChanges*/, false /*onlyTheLib*/, true /*forceRescan*/ ); - const Snapshot snapshot = QmlJSTools::Internal::ModelManager::instance()->snapshot(); - QDirIterator it(srcDir.toString(), QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); @@ -184,7 +182,7 @@ QList QuickTestParser::scanDirectoryForQuickTestQmlFiles(const Fi QList foundDocs; for (const FilePath &path : std::as_const(dirs)) { - const QList docs = snapshot.documentsInDirectory(path); + const QList docs = m_qmlSnapshot.documentsInDirectory(path); for (const Document::Ptr &doc : docs) { const FilePath fi = doc->fileName(); //const QFileInfo fi(doc->fileName());