summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-02-09 00:23:03 (GMT)
committerAndrew den Exter <andrew.den-exter@nokia.com>2011-02-16 01:01:43 (GMT)
commit6c3868572d8f109884a1b3fb806331fda3ef84d4 (patch)
tree0a3d2f691e460a8acd155483d502e6e663d595cc /src/declarative
parent3997977cdb712042c540b143f2ce2f5376e9d1e0 (diff)
downloadQt-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')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp2
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;