qt5base-lts/tests/auto/gui
Dan Cape 36ecf2c025 Fix QTextEdit/QQuickTextEdit undo bug - Part #2
If a user selected the text "foo" and typed "bar", upon pressing undo,
the text would change to "b". This is incorrect and does not match the
functionality of QLineEdit or the default behaviours of Windows/OSX/Ubuntu.
This was fixed by a change made to always merge two sequential inserts
if they are not part of the same block. Previously the selection delete
and the "b" were part of one edit block and "ar" was part of another.
With this change, the selection delete and "bar" are part of the same
edit block.

Unit test changes are part of a separate review (Part #1) since they
required changes in qtdeclarative.

[ChangeLog][QtGui][Important Behavior Changes] Fixed QTextEdit to match
undo functionality of QLineEdit to group two sequential inserts into one
undo action.

Task-number: QTBUG-38825
Change-Id: I76bf30e331e3526277c3e0ade58cf95b611fc117
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
2016-03-02 16:00:02 +00:00
..
image Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-29 12:34:31 +01:00
itemmodels QStandardItemModel: Reset the flags on clear() 2016-02-17 11:39:13 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-29 12:34:31 +01:00
math3d Updated license headers 2016-01-21 18:55:18 +00:00
painting QRegion: make iterable 2016-02-28 19:06:44 +00:00
qopengl Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
qopenglconfig Updated license headers 2016-01-21 18:55:18 +00:00
text Fix QTextEdit/QQuickTextEdit undo bug - Part #2 2016-03-02 16:00:02 +00:00
util Updated license headers 2016-01-21 18:55:18 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00