summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikas Pachdha <vikas.pachdha@qt.io>2022-12-12 17:03:26 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2022-12-12 16:42:58 +0000
commite91b832f33a7dab0d074918c8664b5f686d8f788 (patch)
tree7d0cfa68e0902039a5f62b8c7b693947bbd24a10
parentf3a5a38de8ffdde2ea66894eae4739ae86a94f99 (diff)
downloadqt-creator-qds/3.9.tar.gz
Update interface to let refreshing files in code modelqds/v3.9.0qds/3.9
The use case is to wait for the udpate to finish Task-number: QDS-8469 Change-Id: Ia3871a5557c90a06b33eee52840b267d808cfe21 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--src/libs/qmljs/qmljsmodelmanagerinterface.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h
index 52af12d6c0..9ea231923f 100644
--- a/src/libs/qmljs/qmljsmodelmanagerinterface.h
+++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h
@@ -188,6 +188,9 @@ public:
void removeProjectInfo(ProjectExplorer::Project *project);
void maybeQueueCppQmlTypeUpdate(const CPlusPlus::Document::Ptr &doc);
+ QFuture<void> refreshSourceFiles(const QList<Utils::FilePath> &sourceFiles,
+ bool emitDocumentOnDiskChanged);
+
signals:
void documentUpdated(QmlJS::Document::Ptr doc);
void documentChangedOnDisk(QmlJS::Document::Ptr doc);
@@ -207,9 +210,6 @@ protected:
virtual void addTaskInternal(const QFuture<void> &result, const QString &msg,
const char *taskId) const;
- QFuture<void> refreshSourceFiles(const QList<Utils::FilePath> &sourceFiles,
- bool emitDocumentOnDiskChanged);
-
static void parseLoop(QSet<Utils::FilePath> &scannedPaths,
QSet<Utils::FilePath> &newLibraries,
const WorkingCopy &workingCopyInternal,