summaryrefslogtreecommitdiffstats
path: root/src/dialogs/qquickdialog.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-08-07 09:16:36 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-09-11 17:29:03 +0200
commit16216d2484492031542e85ae8d73f94f487aba8f (patch)
tree16ba560e4a7e3dea73fdf60b353a2442ea44505b /src/dialogs/qquickdialog.cpp
parent7e7be1883b5260efea274f477936ff990652b981 (diff)
TextSelection: improve logic that sync handles with selection
Since property 'selectionPosition' is updated by QML after 'onSelectionStartChanged', we cannot depend on it directly from within the handler. Moreover, since selectionStart gets updated before cursorPosition, we need to update both selectionHandle and cursorHandle when either change to ensure that we use the latest values in both cases. This will fix two bugs that causes the handles to jump to wrong positions (and even wrong lines) once the user starts dragging. Change-Id: I74919abb4169439659bd42952d5d5e6020f33853 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/dialogs/qquickdialog.cpp')
0 files changed, 0 insertions, 0 deletions