Public Slots | |
void | process (QString text, int keycode, int modifiers, bool isPress, bool autoRepeat) |
This method makes key event happen. | |
bool | keyPress (const QString &text, int keycode, int modifiers, bool autoRepeat) |
bool | keyRelease (const QString &text, int keycode, int modifiers, bool autoRepeat) |
bool | isAccepted () const |
void | accept () |
Signals | |
void | keyPressed (const QString &text, int keycode, int modifiers, bool autoRepeat) |
void | keyReleased (const QString &text, int keycode, int modifiers, bool autoRepeat) |
Public Member Functions | |
QimsysKeyManager (QObject *parent=0, Type type=Client) | |
Constructor. | |
~QimsysKeyManager () | |
Destructor. | |
virtual bool | init () |
Initialize object. | |
Protected Member Functions | |
QimsysAbstractIpcObject * | server () const |
returns server instance. | |
Properties | |
bool | accepted |
Application must have a subclass for server to handle key input.
Platform backends use this client to process key input.
bool QimsysKeyManager::init | ( | ) | [virtual] |
Initialize object.
Make sure to call init() for every instance.
Reimplemented from QimsysAbstractIpcObject.
void QimsysKeyManager::process | ( | QString | text, | |
int | keycode, | |||
int | modifiers, | |||
bool | isPress, | |||
bool | autoRepeat | |||
) | [slot] |
This method makes key event happen.
Use this method to make key event happen for testing purpose.
QimsysAbstractIpcObject * QimsysKeyManager::server | ( | ) | const [protected, virtual] |