summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2019-01-23 13:14:50 +0100
committerMarco Bubke <marco.bubke@qt.io>2019-01-24 10:03:45 +0000
commitf5c3007058ae713e099152de8c8a71eab06b7d9f (patch)
tree3363cfd6b04b1e87420dc9a5f7550ca56968659c /src/plugins/cpptools/cppmodelmanager.h
parent2e19352177cb23d185d0515c32128406791c317e (diff)
downloadqt-creator-f5c3007058ae713e099152de8c8a71eab06b7d9f.tar.gz
CppTools: Add sourceFilePath to AbstractEditorSupport
Provide the source path to track a generated file source. You can for example get the modified time stamp for the source file and use it for the generated file content. Task-number: QTCREATORBUG-21876 Change-Id: Ia422e128c5cb7a3dce88960f126152c2f65afb41 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h
index 302e447ade..2c5fe960f2 100644
--- a/src/plugins/cpptools/cppmodelmanager.h
+++ b/src/plugins/cpptools/cppmodelmanager.h
@@ -137,6 +137,7 @@ public:
void emitDocumentUpdated(Document::Ptr doc);
void emitAbstractEditorSupportContentsUpdated(const QString &filePath,
+ const QString &sourcePath,
const QByteArray &contents);
void emitAbstractEditorSupportRemoved(const QString &filePath);
@@ -243,7 +244,9 @@ signals:
void gcFinished(); // Needed for tests.
- void abstractEditorSupportContentsUpdated(const QString &filePath, const QByteArray &contents);
+ void abstractEditorSupportContentsUpdated(const QString &filePath,
+ const QString &sourcePath,
+ const QByteArray &contents);
void abstractEditorSupportRemoved(const QString &filePath);
public slots: