qt5base-lts/src
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
..
3rdparty Add native support for D-Bus global menu 2016-02-23 20:56:07 +00:00
android Perfect (almost) Qt on Android splash screen. 2016-02-24 17:19:38 +00:00
angle rework include path construction in the module system 2016-01-12 15:14:57 +00:00
concurrent Merge remote-tracking branch 'origin/5.6' into dev 2016-01-26 16:27:28 +01:00
corelib Merge remote-tracking branch 'origin/5.7' into dev 2016-03-01 08:23:55 +01:00
dbus Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-18 20:50:35 +01:00
gui Fix QTextEdit/QQuickTextEdit undo bug - Part #2 2016-03-02 16:00:02 +00:00
network QAbstractSocket::flush(): remove manual polymorphism 2016-03-01 18:32:46 +00:00
opengl Use QFlags::setFlag where prudent in qtbase 2016-02-12 19:32:05 +00:00
openglextensions Fix typo when resolving EGL extension. 2015-04-23 11:54:36 +00:00
platformheaders QtPlatformHeaders/Windows: Add function to set window activation behavior. 2016-02-25 07:17:43 +00:00
platformsupport Report correct font underline position on OS X 2016-03-01 12:15:00 +00:00
plugins Merge remote-tracking branch 'origin/5.7' into dev 2016-03-01 08:23:55 +01:00
printsupport QtPrintSupport: convert some index-based into C++11 range-for loops 2016-02-17 16:18:08 +00:00
sql Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-29 12:34:31 +01:00
testlib QtTest: eradicate all Q_FOREACH loops 2016-02-29 07:57:51 +00:00
tools Merge remote-tracking branch 'origin/5.7' into dev 2016-03-01 08:23:55 +01:00
widgets Merge "Merge remote-tracking branch 'origin/5.7' into dev" into refs/staging/dev 2016-03-01 12:06:48 +00:00
winmain winrt: handle PrelaunchActivated property to pass certification 2016-01-05 13:04:09 +00:00
xml Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
src.pro rework include path construction in the module system 2016-01-12 15:14:57 +00:00