summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qlineedit_p.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-08-03 15:47:40 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-08-11 07:46:08 +0000
commit22e752bada2b1f83f94b95c3473b6c3fe13cd7c5 (patch)
treeb82cfb6d13cebf752c6b0bc91f25db19dbe3faf7 /src/widgets/widgets/qlineedit_p.cpp
parentbedbcb2fafa7bdb157a2ba03d1acabbf18a15bcf (diff)
QLineEdit: update IM status after selection change
As it stood, we only told the platform about a selection change if the cursor also changed position. But if you have a selection, and press key left, the selection will be cleared without moving the cursor. And for those cases, we didn't report the selection change back to the platform. The result was that the IM status in the platform plugin got out of sync with the widget. This patch will add the missing connection that updates the platform whenever the selection changes. Change-Id: Iab0848f27207b63ed4fb47f0d4f24a6d02e87db1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/widgets/widgets/qlineedit_p.cpp')
-rw-r--r--src/widgets/widgets/qlineedit_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/widgets/qlineedit_p.cpp b/src/widgets/widgets/qlineedit_p.cpp
index ad3a92d35a..3f768bfbd3 100644
--- a/src/widgets/widgets/qlineedit_p.cpp
+++ b/src/widgets/widgets/qlineedit_p.cpp
@@ -188,6 +188,9 @@ void QLineEditPrivate::init(const QString& txt)
QObject::connect(control, SIGNAL(selectionChanged()),
q, SLOT(update()));
+ QObject::connect(control, SIGNAL(selectionChanged()),
+ q, SLOT(updateMicroFocus()));
+
QObject::connect(control, SIGNAL(displayTextChanged(QString)),
q, SLOT(update()));