ClassView: Consolidate project caches into one

We had three different hashes that cached the project data.
Replace it with one cache. Provide a dedicated structure for it.

Task-number: QTCREATORBUG-25317
Change-Id: Ib6bafd38ee3c48f3e4960be1650709af777f255a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2021-02-12 11:09:17 +01:00
parent a0500f5b9a
commit f6a194b7a7
2 changed files with 30 additions and 53 deletions

View File

@@ -58,7 +58,6 @@ public:
void fetchMore(QStandardItem *item, bool skipRoot = false) const;
bool hasChildren(QStandardItem *item) const;
void clearCache();
void requestCurrentState();
void removeFiles(const QStringList &fileList);
void resetDataToCurrentState();
@@ -70,7 +69,6 @@ signals:
private:
using CitCachedDocTreeRevision = QHash<QString, unsigned>::const_iterator;
using CitCachedPrjFileLists = QHash<QString, QStringList>::const_iterator;
void setFileList(const QStringList &fileList);
void resetData(const CPlusPlus::Snapshot &snapshot);