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>bb10
parent
bedbcb2faf
commit
22e752bada
|
|
@ -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()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue