forked from qt-creator/qt-creator
		
	Merge remote-tracking branch 'origin/11.0'
Change-Id: I8d1c9720a868da02b3157a48954eb4e262539c84
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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -14,12 +14,15 @@ class AndroidManifestDocument : public TextEditor::TextDocument
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    explicit AndroidManifestDocument(AndroidManifestEditorWidget *editorWidget);
 | 
			
		||||
    bool save(QString *errorString, const Utils::FilePath &filePath,
 | 
			
		||||
              bool autoSave = false) override;
 | 
			
		||||
 | 
			
		||||
    bool isModified() const override;
 | 
			
		||||
    bool isSaveAsAllowed() const override;
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    bool saveImpl(QString *errorString,
 | 
			
		||||
                  const Utils::FilePath &filePath,
 | 
			
		||||
                  bool autoSave = false) override;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    AndroidManifestEditorWidget *m_editorWidget;
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user