diff options
author | Vikas Pachdha <vikas.pachdha@qt.io> | 2022-12-12 17:03:26 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-12-12 16:42:58 +0000 |
commit | e91b832f33a7dab0d074918c8664b5f686d8f788 (patch) | |
tree | 7d0cfa68e0902039a5f62b8c7b693947bbd24a10 | |
parent | f3a5a38de8ffdde2ea66894eae4739ae86a94f99 (diff) |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h index 52af12d6c0e..9ea231923f1 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, |