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>
This commit is contained in:
Marco Bubke
2019-01-23 13:14:50 +01:00
parent 2e19352177
commit f5c3007058
10 changed files with 24 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ void AbstractEditorSupport::updateDocument()
void AbstractEditorSupport::notifyAboutUpdatedContents() const
{
m_modelmanager->emitAbstractEditorSupportContentsUpdated(fileName(), contents());
m_modelmanager->emitAbstractEditorSupportContentsUpdated(fileName(), sourceFileName(), contents());
}
QString AbstractEditorSupport::licenseTemplate(const QString &file, const QString &className)