qt6-bb10/tests/auto/widgets
Andreas Aardal Hanssen a9cda51517 Fixes a regression; missing cursor blink when input mask is set.
I can't say for sure why q*linecontrol passes an empty rect to
the updateNeeded() signal when an input mask is set; presumably
the empty rect at some point has meant "full update", but there
are a few problems with this. Surely a full update is wrong,
even if the semantics have been lost in translation somewhere
(likely the qlinecontrol refactoring). This fix ensures
that empty rects from updateNeeded() are interpreted as a request
to update the whole widget. A further improvement would be to
ensure the line control doesn't request a full update when an
input mask is set. The cursor is usually wider when a mask is
set but because of QLineEdit::paintEvent()'s implementation,
there is currently a mismatch between the cursor width as seen
by q*linecontrol and what is actually drawn, which causes
rendering artifacts if updateNeeded() sends the cursorRect().

Since QLineEdit and Q*LineControl aren't actively developed, it's
best to keep this fix minimal, although the performance cost of
updating the whole line edit when an input mask is set is
unfortunate.

Task-number: QTBUG-7174
Change-Id: Ie51e015d760915e07b0220b770f04fc958d93a12
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
2012-04-12 04:35:22 +02:00
..
dialogs Mark tst_qdialog as insignificant on mac. 2012-03-27 03:36:33 +02:00
effects Move tst_qicon.cpp and tst_qpixmapfilter.cpp to QtWidgets 2012-03-12 10:48:40 +01:00
graphicsview Remove insignification from tst_qgraphicsgridlayout. 2012-04-11 19:14:43 +02:00
itemviews QHeaderView - rename many spans classes and variables 2012-04-11 01:42:12 +02:00
kernel Use "qt-project.org" instead of "trolltech" in the resource system 2012-03-28 07:50:06 +02:00
styles Fix QSysInfo::WindowsVersion checking (QSysInfo::WV_NT_based is a mask) 2012-03-22 16:13:21 +01:00
util Implement QSystemTrayIcon for X11. 2012-03-23 11:45:25 +01:00
widgets Fixes a regression; missing cursor blink when input mask is set. 2012-04-12 04:35:22 +02:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00