QSpinBox: fix cursor jumping around when pressing up/down keys
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Wed, 5 Oct 2011 11:39:57 +0000 (14:39 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 17 Dec 2013 12:52:31 +0000 (13:52 +0100)
commitcd7aaa3820cb0b3ab777d1e8ae31379a1ef835e7
treedd5d7e790182a79f27b9afb2fee22b832a352711
parent84bfbd4cb090f7f77ae3b04308726d2b8ddf4792
QSpinBox: fix cursor jumping around when pressing up/down keys

Backport of:
  Make QLineEdit unit test pass again

  Widget failed to update cursor position if selection remained the same, but
  changed direction, and did not emit selectionChanged if change resulted
  from input method event.

Bisected to fix
Task-number: QTBUG-15116
a regression introduced in fb7d86cf.

Change-Id: I6a4ae48d41efa5e126980749f89982f92e3ec499
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
(cherry picked from qtbase/1189ebff320b8dd03637947c92df6e3ef84a3c06)
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/gui/widgets/qlinecontrol.cpp