summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-03-07 15:49:02 +0100
committerChristian Stenger <christian.stenger@qt.io>2017-03-08 08:57:34 +0000
commit05e8f34d3eb22030b10190397cdc1e1e080d6267 (patch)
treef085403271d816362b9bc8dbdd62b9c13a367d54 /src/plugins/autotest/quick/quicktestparser.cpp
parent179b845acb6da0bb22e689110977b86675dee533 (diff)
downloadqt-creator-05e8f34d3eb22030b10190397cdc1e1e080d6267.tar.gz
QmlJS: Allow forced rescan on already known paths
Qml files used by Quick tests are not necessarily added to the project file and therefore not fully handled by the QmlJS code model / snapshot. When adding qml files to a directory that is handled by the code model these folders are not scanned again - we need to enforce such a scan on AutoTest plugin's side. Task-number: QTCREATORBUG-17805 Change-Id: Ie3d071a9aa03297d618648b06d52fb298c856d25 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index c7d375b1f2..0d3357d9fe 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -134,10 +134,8 @@ static QList<QmlJS::Document::Ptr> scanDirectoryForQuickTestQmlFiles(const QStri
QFutureInterface<void> future;
QmlJS::PathsAndLanguages paths;
paths.maybeInsert(Utils::FileName::fromString(srcDir), QmlJS::Dialect::Qml);
- const bool emitDocumentChanges = false;
- const bool onlyTheLib = false;
QmlJS::ModelManagerInterface::importScan(future, qmlJsMM->workingCopy(), paths, qmlJsMM,
- emitDocumentChanges, onlyTheLib);
+ false /*emitDocumentChanges*/, false /*onlyTheLib*/, true /*forceRescan*/ );
const QmlJS::Snapshot snapshot = QmlJSTools::Internal::ModelManager::instance()->snapshot();
QDirIterator it(srcDir, QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);