Don't update the input method if the im hints haven't changed.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Mon, 21 Jan 2013 01:08:47 +0000 (11:08 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 22 Jan 2013 14:26:42 +0000 (15:26 +0100)
commit6873437085a8fe669b12f8f1f2cfee872839d4ec
tree5099038e8731955e4c65874a047df6698b9648af
parent263d733ac70403c488d67b1aab120167f156c3f4
Don't update the input method if the im hints haven't changed.

Depending on the implementation updating an input method can be
expensive and various widgets will at times call setInputMethodHints
with unchanged hints.  QGraphicsView being a notable offender due to
the complexity of the circumstances in which the hints can change.

Skipping the update here ensures the input method isn't updated
unnecessarily for all widgets.

Task-number: QTBUG-19854
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
(cherry picked from commit 40e6b1d0b8c1804dfb33032fa70b6604b91f6f90)

Change-Id: I36ae35585ee20a4e01ca0d62c71e896dbdb51a3f
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/gui/kernel/qwidget.cpp