QmlDesigner: Integrate ProjectStoragePathWatcherNotifier into updater

Task-number: QDS-9092
Change-Id: I6f262367898e54f1c029d6c6b83778919d18ddee
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2023-02-08 16:02:35 +01:00
parent 407167cf90
commit 332b2fb421
2 changed files with 6 additions and 2 deletions

View File

@@ -315,6 +315,8 @@ void ProjectStorageUpdater::updateDirectories(const QStringList &directories,
void ProjectStorageUpdater::pathsWithIdsChanged([[maybe_unused]] const std::vector<IdPaths> &idPaths)
{}
void ProjectStorageUpdater::pathsChanged(const SourceIds &) {}
void ProjectStorageUpdater::parseTypeInfos(const QStringList &typeInfos,
const QList<QmlDirParser::Import> &qmldirDependencies,
const QList<QmlDirParser::Import> &qmldirImports,

View File

@@ -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<ProjectStorage<Sqlite::Database>, NonLockingMutex>;
@@ -50,7 +51,8 @@ public:
{}
void update(QStringList directories, QStringList qmlTypesPaths);
void pathsWithIdsChanged(const std::vector<IdPaths> &idPaths);
void pathsWithIdsChanged(const std::vector<IdPaths> &idPaths) override;
void pathsChanged(const SourceIds &filePathIds) override;
struct Component
{