Show progress indicator while reloading diff

Change-Id: Ieefdb885682f01e0e1c8cec90f4769e832650a0c
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2016-11-22 13:32:29 +01:00
parent 7f757884c5
commit 4aae6b730f
4 changed files with 67 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ public:
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
OpenResult open(QString *errorString, const QString &fileName,
const QString &realFileName) override;
bool isReloading() const { return m_isReloading; }
QString plainText() const;
@@ -101,6 +102,7 @@ private:
int m_contextLineCount;
bool m_isContextLineCountForced;
bool m_ignoreWhitespace;
bool m_isReloading = false;
friend class ::DiffEditor::DiffEditorController;
};