qt5base-lts/tests/auto/gui/text
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
..
qabstracttextdocumentlayout Adjust tst_qabstracttextdocumentlayout for border cases 2016-02-25 07:37:49 +00:00
qcssparser Updated license headers 2016-01-21 18:55:18 +00:00
qfont Updated license headers 2016-01-21 18:55:18 +00:00
qfontcache Merge remote-tracking branch 'origin/5.6' into dev 2016-02-02 15:57:44 +01:00
qfontdatabase Updated license headers 2016-01-21 18:55:18 +00:00
qfontmetrics Updated license headers 2016-01-21 18:55:18 +00:00
qglyphrun Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-18 20:50:35 +01:00
qrawfont Updated license headers 2016-01-21 18:55:18 +00:00
qstatictext Updated license headers 2016-01-21 18:55:18 +00:00
qsyntaxhighlighter Updated license headers 2016-01-21 18:55:18 +00:00
qtextblock Updated license headers 2016-01-21 18:55:18 +00:00
qtextcursor Merge remote-tracking branch 'origin/5.6' into dev 2016-01-26 16:27:28 +01:00
qtextdocument Fix QTextEdit/QQuickTextEdit undo bug - Part #2 2016-03-02 16:00:02 +00:00
qtextdocumentfragment Updated license headers 2016-01-21 18:55:18 +00:00
qtextdocumentlayout Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
qtextformat Updated license headers 2016-01-21 18:55:18 +00:00
qtextlayout Updated license headers 2016-01-21 18:55:18 +00:00
qtextlist Updated license headers 2016-01-21 18:55:18 +00:00
qtextobject Updated license headers 2016-01-21 18:55:18 +00:00
qtextodfwriter Updated license headers 2016-01-21 18:55:18 +00:00
qtextpiecetable Updated license headers 2016-01-21 18:55:18 +00:00
qtextscriptengine Updated license headers 2016-01-21 18:55:18 +00:00
qtexttable Updated license headers 2016-01-21 18:55:18 +00:00
qzip Updated license headers 2016-01-21 18:55:18 +00:00
text.pro Fix the font engines leaking 2013-03-20 07:02:29 +01:00