forked from qt-creator/qt-creator
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user