summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-05-29 12:47:54 (GMT)
committeraxis <qt-info@nokia.com>2009-06-03 11:16:01 (GMT)
commit6989d6438e4fbc78dfbda7ac3326826a2301adaa (patch)
tree76fb2f2e516cc06e8146e526f2b13505458a9ba5 /src/gui
parent2e4cadc9a1bb70350259360d1cc8fc00be424414 (diff)
downloadQt-6989d6438e4fbc78dfbda7ac3326826a2301adaa.zip
Qt-6989d6438e4fbc78dfbda7ac3326826a2301adaa.tar.gz
Qt-6989d6438e4fbc78dfbda7ac3326826a2301adaa.tar.bz2
Added new API QInputMethodEvent::Selection.
This is required for S60 FEP. RevBy: Simon Hausmann
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qevent.cpp11
-rw-r--r--src/gui/kernel/qevent.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index 2aed287..ba85eea 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -1665,6 +1665,17 @@ Qt::ButtonState QContextMenuEvent::state() const
several are specified for any character in the string the behaviour
is undefined.
+ \value Selection
+ If set, the edit cursor should be moved to the specified position
+ in the editor text contents. In contrast with \c Cursor, this
+ attribute does not work on the preedit text, but on the surrounding
+ text. The cursor will be moved after the commit string has been
+ committed, and the preedit string will be located at the new edit
+ position.
+ The start position specifies the new position and the length
+ variable can be used to set a selection starting from that point.
+ The value is unused.
+
\sa Attribute
*/
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h
index 2724315..7696d05 100644
--- a/src/gui/kernel/qevent.h
+++ b/src/gui/kernel/qevent.h
@@ -424,7 +424,8 @@ public:
TextFormat,
Cursor,
Language,
- Ruby
+ Ruby,
+ Selection
};
class Attribute {
public: