qt5base-lts/tests/auto/widgets
Jarkko Koivikko 8de79dbcec Widgets: Fix ImSurroundingText query for a QLineEdit with mask
QLineEdit with a mask does not return empty fields with the
ImSurroundingText query. This is a problem for the input
context that is not aware of the mask and relies on the
fact that the cursor position never exceeds the boundaries
of the surrounding text.

This change fixes the issue by returning unmasked text with
the ImSurroundingText query.

[ChangeLog][QtWidgets][QLineEdit] Fixed behavior of the
ImSurroundingText query. Previously, it returned a masked
text whose length may be less than the cursor position.
Now it returns unmasked text, so the text length is always
greater than or equal to the cursor position.

Task-number: QTBUG-60319
Change-Id: I1c8009164836a1baa2e3a45958bf1ea5fa9be38d
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2017-08-11 13:27:37 +00:00
..
dialogs Ignore hanging tst_qinputdialog::getInt/getDouble() test on macOS 10.12 2017-08-02 15:49:53 +00:00
effects Revert "QWidgetEffectSourcePrivate::draw(): Call render() when no shared painter exists" 2017-06-14 13:00:35 +00:00
gestures autotests: use QTest::createTouchDevice() 2016-06-10 13:07:17 +00:00
graphicsview tst_qgraphicswidget expect fail on Win 10 2017-08-03 06:58:27 +00:00
itemviews QAbstractItemView: fix nullptr violation 2017-08-04 08:36:29 +00:00
kernel tst_qwidget::activation expect fail on Win 10 2017-08-03 06:58:35 +00:00
styles tst_QStyle::drawItemPixmap(): Check on the image color 2017-07-19 07:33:38 +00:00
util Convert features.filesystemmodel to QT_[REQUIRE_]CONFIG 2017-07-02 10:39:04 +00:00
widgets Widgets: Fix ImSurroundingText query for a QLineEdit with mask 2017-08-11 13:27:37 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00