diff options
author | axis <qt-info@nokia.com> | 2009-04-07 10:22:01 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-05-04 11:11:13 (GMT) |
commit | 9e838079f5f8d62aebb542f2415cd77ef9d71df2 (patch) | |
tree | 9cc5359bab7c15c6f6074e802685d42b9728847f /src/gui/inputmethod | |
parent | 27e57ccd327fbc1edbb23d9959c5388023974dfc (diff) | |
download | Qt-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.cpp | 14 |
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. |