From f5c3007058ae713e099152de8c8a71eab06b7d9f Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 23 Jan 2019 13:14:50 +0100 Subject: 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 --- src/plugins/cpptools/cppmodelmanager.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppmodelmanager.h') 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: -- cgit v1.2.1