summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/baseeditordocumentparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/baseeditordocumentparser.h')
-rw-r--r--src/plugins/cpptools/baseeditordocumentparser.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/plugins/cpptools/baseeditordocumentparser.h b/src/plugins/cpptools/baseeditordocumentparser.h
index 92f919e96d..1cf71fefc6 100644
--- a/src/plugins/cpptools/baseeditordocumentparser.h
+++ b/src/plugins/cpptools/baseeditordocumentparser.h
@@ -25,8 +25,8 @@
#pragma once
-#include "cpplanguage.h"
#include "cpptools_global.h"
+#include "cpptools_utils.h"
#include "cppworkingcopy.h"
#include "projectpart.h"
@@ -82,22 +82,26 @@ public:
void update(const UpdateParams &updateParams);
void update(const QFutureInterface<void> &future, const UpdateParams &updateParams);
- ProjectPart::Ptr projectPart() const;
+ ProjectPartInfo projectPartInfo() const;
+
+signals:
+ void projectPartInfoUpdated(const CppTools::ProjectPartInfo &projectPartInfo);
protected:
struct State {
QByteArray editorDefines;
- ProjectPart::Ptr projectPart;
+ ProjectPartInfo projectPartInfo;
};
State state() const;
void setState(const State &state);
- static ProjectPart::Ptr determineProjectPart(const QString &filePath,
- const Configuration &config,
- const State &state,
- const ProjectExplorer::Project *activeProject,
- Language languagePreference,
- bool hasActiveProjectChanged);
+ static ProjectPartInfo determineProjectPart(
+ const QString &filePath,
+ const Configuration &config,
+ const State &state,
+ const ProjectExplorer::Project *activeProject,
+ Language languagePreference,
+ bool hasActiveProjectChanged);
mutable QMutex m_stateAndConfigurationMutex;