From e91b832f33a7dab0d074918c8664b5f686d8f788 Mon Sep 17 00:00:00 2001 From: Vikas Pachdha Date: Mon, 12 Dec 2022 17:03:26 +0100 Subject: [PATCH] Update interface to let refreshing files in code model The use case is to wait for the udpate to finish Task-number: QDS-8469 Change-Id: Ia3871a5557c90a06b33eee52840b267d808cfe21 Reviewed-by: Thomas Hartmann --- src/libs/qmljs/qmljsmodelmanagerinterface.h | 6 +++--- 1 file 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 refreshSourceFiles(const QList &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 &result, const QString &msg, const char *taskId) const; - QFuture refreshSourceFiles(const QList &sourceFiles, - bool emitDocumentOnDiskChanged); - static void parseLoop(QSet &scannedPaths, QSet &newLibraries, const WorkingCopy &workingCopyInternal,