qt5base-lts/tests/auto
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
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
corelib fix QUtf8 codec to disallow codes in range [U+fdd0..U+fdef] 2012-04-11 19:14:43 +02:00
dbus Remove comment about QVariantList and QVariantMap. 2012-03-28 03:18:56 +02:00
gui Add tst_QGuiApplication::modalWindow() 2012-04-11 16:18:07 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
opengl EGLFS: Integrate building into configure. 2012-03-21 03:03:29 +01:00
other Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
printsupport Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
shared Added some convenience API for platform input contexts 2012-04-01 20:13:51 +02:00
sql Convert Boolean value into integer 2012-04-02 23:06:30 +02:00
testlib Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
tools Use "qt-project.org" instead of "trolltech" in the resource system 2012-03-28 07:50:06 +02:00
widgets Fixes a regression; missing cursor blink when input mask is set. 2012-04-12 04:35:22 +02:00
xml Bump some Qt 5 to-do's to Qt 6. 2012-04-10 22:47:37 +02:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Don't require exact IMAP server version in autotests 2012-04-03 12:45:46 +02:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00