forked from qt-creator/qt-creator
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:
@@ -315,6 +315,8 @@ void ProjectStorageUpdater::updateDirectories(const QStringList &directories,
|
|||||||
void ProjectStorageUpdater::pathsWithIdsChanged([[maybe_unused]] const std::vector<IdPaths> &idPaths)
|
void ProjectStorageUpdater::pathsWithIdsChanged([[maybe_unused]] const std::vector<IdPaths> &idPaths)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
void ProjectStorageUpdater::pathsChanged(const SourceIds &) {}
|
||||||
|
|
||||||
void ProjectStorageUpdater::parseTypeInfos(const QStringList &typeInfos,
|
void ProjectStorageUpdater::parseTypeInfos(const QStringList &typeInfos,
|
||||||
const QList<QmlDirParser::Import> &qmldirDependencies,
|
const QList<QmlDirParser::Import> &qmldirDependencies,
|
||||||
const QList<QmlDirParser::Import> &qmldirImports,
|
const QList<QmlDirParser::Import> &qmldirImports,
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
#include "filestatus.h"
|
#include "filestatus.h"
|
||||||
#include "nonlockingmutex.h"
|
#include "nonlockingmutex.h"
|
||||||
#include "projectstorageids.h"
|
#include "projectstorageids.h"
|
||||||
|
#include "projectstoragepathwatchernotifierinterface.h"
|
||||||
#include "projectstoragepathwatchertypes.h"
|
#include "projectstoragepathwatchertypes.h"
|
||||||
#include "projectstoragetypes.h"
|
#include "projectstoragetypes.h"
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ class ProjectStorage;
|
|||||||
class QmlDocumentParserInterface;
|
class QmlDocumentParserInterface;
|
||||||
class QmlTypesParserInterface;
|
class QmlTypesParserInterface;
|
||||||
|
|
||||||
class ProjectStorageUpdater
|
class ProjectStorageUpdater : public ProjectStoragePathWatcherNotifierInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using PathCache = SourcePathCache<ProjectStorage<Sqlite::Database>, NonLockingMutex>;
|
using PathCache = SourcePathCache<ProjectStorage<Sqlite::Database>, NonLockingMutex>;
|
||||||
@@ -50,7 +51,8 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
void update(QStringList directories, QStringList qmlTypesPaths);
|
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
|
struct Component
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user