TextEditors: Keep visible position in editor for 'external' changes
authorEike Ziller <eike.ziller@digia.com>
Fri, 7 Mar 2014 10:29:35 +0000 (11:29 +0100)
committerEike Ziller <eike.ziller@digia.com>
Fri, 6 Jun 2014 11:37:35 +0000 (13:37 +0200)
commitade2710725bf717ab9ef830dd9a38d90e6d47a1c
tree534ad795f0202b746f3f34ad9643de2743b7778b
parent73360f8acb5757326ea5755216bab798592de5dc
TextEditors: Keep visible position in editor for 'external' changes

If contents of a text editor change from outside the editor,
the visible portion of the text in the viewport should stay the same.
That is especially apparent when opening a document in a split view, and
adding/removing lines in one of them, above the first visible line in
the other.

Task-number: QTCREATORBUG-11486
Change-Id: I28cde17ecf98cb98c1d6f1259dc66d3671585ee3
Reviewed-by: David Schulz <david.schulz@digia.com>
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor_p.h