path: root/configure
diff options
authorAndreas Aardal Hanssen <>2012-04-08 11:58:30 +0200
committerQt by Nokia <>2012-04-12 04:35:22 +0200
commita9cda515177db1615f8d47becf2aa781f26955ae (patch)
tree2d0e872b7338c89d63b80471c02b059530759bfd /configure
parentc7da50ef8cf30558537425918cf03f5e72c680c1 (diff)
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 <> Reviewed-by: Girish Ramakrishnan <>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions