aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/core/minputmethodstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/core/minputmethodstate.h')
-rw-r--r--src/corelib/core/minputmethodstate.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/core/minputmethodstate.h b/src/corelib/core/minputmethodstate.h
index 159762ef..44a756e3 100644
--- a/src/corelib/core/minputmethodstate.h
+++ b/src/corelib/core/minputmethodstate.h
@@ -26,6 +26,8 @@
#include "mnamespace.h"
#include "mexport.h"
+class QKeyEvent;
+
class MInputMethodStatePrivate;
/*!
@@ -55,6 +57,11 @@ public:
//! \return orientation of application's active window
M::OrientationAngle activeWindowOrientationAngle() const;
+ //! \internal
+ void emitKeyPress(const QKeyEvent &event);
+ void emitKeyRelease(const QKeyEvent &event);
+ //! \internal_end
+
public Q_SLOTS:
//! \brief Set the orientation of application's active window to \a newOrientation
void setActiveWindowOrientationAngle(M::OrientationAngle newOrientation);
@@ -105,6 +112,12 @@ Q_SIGNALS:
//! Emitted when input method toolbar item attribute is changed.
void toolbarItemAttributeChanged(int id, const QString &item, const QString &attribute, const QVariant &value);
+ //! Can be emitted by input method to notify about raw key press event it receives.
+ void keyPress(const QKeyEvent &);
+
+ //! Can be emitted by input method to notify about raw key release event it receives.
+ void keyRelease(const QKeyEvent &);
+
private:
//! Disable default construction
MInputMethodState();