diff options
author | Marco Bubke <marco.bubke@qt.io> | 2019-01-23 13:14:50 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2019-01-24 10:03:45 +0000 |
commit | f5c3007058ae713e099152de8c8a71eab06b7d9f (patch) | |
tree | 3363cfd6b04b1e87420dc9a5f7550ca56968659c /src/plugins/clangrefactoring | |
parent | 2e19352177cb23d185d0515c32128406791c317e (diff) | |
download | qt-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/clangrefactoring')
-rw-r--r-- | src/plugins/clangrefactoring/qtcreatorrefactoringprojectupdater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangrefactoring/qtcreatorrefactoringprojectupdater.cpp b/src/plugins/clangrefactoring/qtcreatorrefactoringprojectupdater.cpp index a35e8b5888..f3ca992620 100644 --- a/src/plugins/clangrefactoring/qtcreatorrefactoringprojectupdater.cpp +++ b/src/plugins/clangrefactoring/qtcreatorrefactoringprojectupdater.cpp @@ -84,7 +84,7 @@ void QtCreatorRefactoringProjectUpdater::connectToCppModelManager() QObject::connect(cppModelManager(), &CppTools::CppModelManager::abstractEditorSupportContentsUpdated, - [&] (const QString &filePath, const QByteArray &contents) { + [&] (const QString &filePath, const QString &, const QByteArray &contents) { abstractEditorUpdated(filePath, contents); }); |