summaryrefslogtreecommitdiffstats
path: root/src/gui/inputmethod
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-04-07 10:22:01 (GMT)
committeraxis <qt-info@nokia.com>2009-05-04 11:11:13 (GMT)
commit9e838079f5f8d62aebb542f2415cd77ef9d71df2 (patch)
tree9cc5359bab7c15c6f6074e802685d42b9728847f /src/gui/inputmethod
parent27e57ccd327fbc1edbb23d9959c5388023974dfc (diff)
downloadQt-9e838079f5f8d62aebb542f2415cd77ef9d71df2.zip
Qt-9e838079f5f8d62aebb542f2415cd77ef9d71df2.tar.gz
Qt-9e838079f5f8d62aebb542f2415cd77ef9d71df2.tar.bz2
Added an event to request and close software input panel.
This is meant to be used by widgets to signal that they want input. The event will then be passed on to QInputContext::filterEvent, which can create an appropriate virtual keyboard on devices with touch interface only. RevBy: denis
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r--src/gui/inputmethod/qinputcontext.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/inputmethod/qinputcontext.cpp b/src/gui/inputmethod/qinputcontext.cpp
index 3d6d303..dba377a 100644
--- a/src/gui/inputmethod/qinputcontext.cpp
+++ b/src/gui/inputmethod/qinputcontext.cpp
@@ -209,7 +209,19 @@ void QInputContext::setFocusWidget(QWidget *widget)
way. Although the input events have accept() and ignore()
methods, leave it untouched.
- \a event is currently restricted to QKeyEvent and QMouseEvent.
+ \a event is currently restricted to events of these types:
+
+ \list
+ \i CloseSoftwareInputPanel
+ \i KeyPress
+ \i KeyRelease
+ \i MouseButtonDblClick
+ \i MouseButtonPress
+ \i MouseButtonRelease
+ \i MouseMove
+ \i RequestSoftwareInputPanel
+ \endlist
+
But some input method related events such as QWheelEvent or
QTabletEvent may be added in future.