qt5base-lts/tests/auto/widgets
Andy Shaw a07120d496 Don't clear lineedit in non normal echo mode when validation is invalid
This fixes a regression introduced with
c09e9f71173a698670d6c728291ee24f53d50800 which caused the lineedit to
clear the whole text when an invalid character was entered into a lineedit
with an echo mode that was not Normal and a validator was set.

Now if undo() is called directly then it will still clear the text as it
is considered to be called as a user. Whereas the validation will take
care of the invalid entry by using internalUndo() as before which avoids
the clearing of the entire text.

Task-number: QTBUG-29318
Change-Id: I5ff5777a75ab864de2217441b5f518f50646bd8f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2014-12-19 15:55:07 +01:00
..
dialogs Enable tst_qfiledialog2 on OSX 2014-11-19 16:13:25 +01:00
effects Update license headers and add new license files 2014-09-24 12:26:19 +02:00
gestures QPanGestureRecognizer: Make the number of touch points a parameter. 2014-11-17 14:38:15 +01:00
graphicsview Enable tst_QGraphicsView on OSX 2014-11-19 16:13:43 +01:00
itemviews Respect the size hint signal for the column and row delegates 2014-12-03 13:31:07 +01:00
kernel Stabilize tst_QWindowContainer. 2014-12-04 20:18:38 +01:00
styles Update license headers and add new license files 2014-09-24 12:26:19 +02:00
util Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
widgets Don't clear lineedit in non normal echo mode when validation is invalid 2014-12-19 15:55:07 +01:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00