From 919b60b4fcc72fdcd5dc0e80e642f922da17cd96 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Fri, 6 Jul 2012 16:05:33 +1000 Subject: Fix restoration of cursor position and selection after undo/redo. If a text selection was deleted, the selection should be restored by an undo, but not if the selection was part of an atomic operation like the DeleteStartOfWord key sequence. Change-Id: Ia37f29c78f6367c60377c539c4e394e014485a49 Reviewed-by: Yann Bodson --- src/quick/items/qquicktextinput_p_p.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/quick/items/qquicktextinput_p_p.h') diff --git a/src/quick/items/qquicktextinput_p_p.h b/src/quick/items/qquicktextinput_p_p.h index 0cc0846a5e..e147c17d96 100644 --- a/src/quick/items/qquicktextinput_p_p.h +++ b/src/quick/items/qquicktextinput_p_p.h @@ -435,6 +435,11 @@ private: inline void separate() { m_separator = true; } + bool separateSelection(); + void deleteStartOfWord(); + void deleteEndOfWord(); + void deleteEndOfLine(); + enum ValidatorState { #ifndef QT_NO_VALIDATOR InvalidInput = QValidator::Invalid, -- cgit v1.2.3