diff options
author | Christopher Ham <christopher.ham@nokia.com> | 2010-12-06 05:46:47 (GMT) |
---|---|---|
committer | Christopher Ham <christopher.ham@nokia.com> | 2010-12-06 05:54:21 (GMT) |
commit | b74ec2156b2a1f1acd38443047da5bb26cb082b1 (patch) | |
tree | f550010a6856beb11aa42dc44876cd051bb7ab1a /src/declarative | |
parent | ac977c4d57eba8fe2b71e51fc3d0b5eddd416e17 (diff) | |
download | Qt-b74ec2156b2a1f1acd38443047da5bb26cb082b1.zip Qt-b74ec2156b2a1f1acd38443047da5bb26cb082b1.tar.gz Qt-b74ec2156b2a1f1acd38443047da5bb26cb082b1.tar.bz2 |
Cursor shouldn't blink while dragging cursor position
A function resetCursorBlinkerTimer was introduced to QLineControl.
Each time the cursor position in a textInput is updated, the blinker
timer is reset.
Task-number: QTBUG-15815
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index f8421a3..df103de 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -1479,6 +1479,7 @@ void QDeclarativeTextInput::cursorPosChanged() updateRect();//TODO: Only update rect between pos's updateMicroFocus(); emit cursorPositionChanged(); + d->control->resetCursorBlinkTimer(); if(!d->control->hasSelectedText()){ if(d->lastSelectionStart != d->control->cursor()){ |