DiffEditor: add info bar for documents with encoding errors

... with the option to reload the diff document with another encoding.

Fixes: QTCREATORBUG-23835
Change-Id: I1ce07b292688059b37535f2972970d8ea91be81b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2020-04-14 11:10:52 +02:00
parent d42920d372
commit 2f53f58280
5 changed files with 60 additions and 5 deletions

View File

@@ -86,6 +86,7 @@ public:
bool reload(QString *errorString, ReloadFlag flag, ChangeType type) override;
OpenResult open(QString *errorString, const QString &fileName,
const QString &realFileName) override;
bool selectEncoding();
State state() const { return m_state; }
QString plainText() const;