diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-02-09 00:23:03 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-02-16 01:01:43 (GMT) |
commit | 6c3868572d8f109884a1b3fb806331fda3ef84d4 (patch) | |
tree | 0a3d2f691e460a8acd155483d502e6e663d595cc /src/declarative/graphicsitems | |
parent | 3997977cdb712042c540b143f2ce2f5376e9d1e0 (diff) | |
download | Qt-6c3868572d8f109884a1b3fb806331fda3ef84d4.zip Qt-6c3868572d8f109884a1b3fb806331fda3ef84d4.tar.gz Qt-6c3868572d8f109884a1b3fb806331fda3ef84d4.tar.bz2 |
Update the input context when the pre-edit cursor position changes.
The micro focus rect changes both when the regular cursor position
and the pre-edit cursor positions change. Ensure updateMicroFocus
is called TextInput in both cases.
Change-Id: I6822a710b841e106ce2462f74fea398250596913
Task-number: QTBUG-17396
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativetextinput.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp index 88f36b4..e7c2ac7 100644 --- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp +++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp @@ -1662,6 +1662,8 @@ void QDeclarativeTextInputPrivate::init() q->connect(QApplication::clipboard(), SIGNAL(dataChanged()), q, SLOT(q_canPasteChanged())); #endif // QT_NO_CLIPBOARD + q->connect(control, SIGNAL(updateMicroFocus()), + q, SLOT(updateMicroFocus())); q->updateSize(); oldValidity = control->hasAcceptableInput(); lastSelectionStart = 0; |