aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/abstracteditorsupport.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/abstracteditorsupport.h
parent2e19352177cb23d185d0515c32128406791c317e (diff)
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/abstracteditorsupport.h')
-rw-r--r--src/plugins/cpptools/abstracteditorsupport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/abstracteditorsupport.h b/src/plugins/cpptools/abstracteditorsupport.h
index 617c9099f7..347a6b6e01 100644
--- a/src/plugins/cpptools/abstracteditorsupport.h
+++ b/src/plugins/cpptools/abstracteditorsupport.h
@@ -43,6 +43,7 @@ public:
/// \returns the contents, encoded as UTF-8
virtual QByteArray contents() const = 0;
virtual QString fileName() const = 0;
+ virtual QString sourceFileName() const = 0;
void updateDocument();
void notifyAboutUpdatedContents() const;