forked from qt-creator/qt-creator
Core: add aboutToSave and saved signal to IDocument
We need reliable signals that gets emitted when documents are saved to inform the language server about the document state change. Change-Id: I0a1e8a5317ae6984ff17d878952c74f69765e3f9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -25,10 +25,12 @@ AndroidManifestDocument::AndroidManifestDocument(AndroidManifestEditorWidget *ed
|
||||
this, &Core::IDocument::changed);
|
||||
}
|
||||
|
||||
bool AndroidManifestDocument::save(QString *errorString, const Utils::FilePath &filePath, bool autoSave)
|
||||
bool AndroidManifestDocument::saveImpl(QString *errorString,
|
||||
const Utils::FilePath &filePath,
|
||||
bool autoSave)
|
||||
{
|
||||
m_editorWidget->preSave();
|
||||
bool result = TextDocument::save(errorString, filePath, autoSave);
|
||||
bool result = TextDocument::saveImpl(errorString, filePath, autoSave);
|
||||
m_editorWidget->postSave();
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user