From 332b2fb42198e7f1d6baa91ae754af36e54bca2a Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 8 Feb 2023 16:02:35 +0100 Subject: [PATCH] QmlDesigner: Integrate ProjectStoragePathWatcherNotifier into updater Task-number: QDS-9092 Change-Id: I6f262367898e54f1c029d6c6b83778919d18ddee Reviewed-by: Tim Jenssen --- .../designercore/projectstorage/projectstorageupdater.cpp | 2 ++ .../designercore/projectstorage/projectstorageupdater.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.cpp b/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.cpp index 48b29793866..fddc6272d13 100644 --- a/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.cpp +++ b/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.cpp @@ -315,6 +315,8 @@ void ProjectStorageUpdater::updateDirectories(const QStringList &directories, void ProjectStorageUpdater::pathsWithIdsChanged([[maybe_unused]] const std::vector &idPaths) {} +void ProjectStorageUpdater::pathsChanged(const SourceIds &) {} + void ProjectStorageUpdater::parseTypeInfos(const QStringList &typeInfos, const QList &qmldirDependencies, const QList &qmldirImports, diff --git a/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.h b/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.h index 80100c636ed..33d0f99e32f 100644 --- a/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.h +++ b/src/plugins/qmldesigner/designercore/projectstorage/projectstorageupdater.h @@ -6,6 +6,7 @@ #include "filestatus.h" #include "nonlockingmutex.h" #include "projectstorageids.h" +#include "projectstoragepathwatchernotifierinterface.h" #include "projectstoragepathwatchertypes.h" #include "projectstoragetypes.h" @@ -30,7 +31,7 @@ class ProjectStorage; class QmlDocumentParserInterface; class QmlTypesParserInterface; -class ProjectStorageUpdater +class ProjectStorageUpdater : public ProjectStoragePathWatcherNotifierInterface { public: using PathCache = SourcePathCache, NonLockingMutex>; @@ -50,7 +51,8 @@ public: {} void update(QStringList directories, QStringList qmlTypesPaths); - void pathsWithIdsChanged(const std::vector &idPaths); + void pathsWithIdsChanged(const std::vector &idPaths) override; + void pathsChanged(const SourceIds &filePathIds) override; struct Component {