Diffstat (limited to 'noncore/apps/opie-console/function_keyboard.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/function_keyboard.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp index d8ade69..a5b19c0 100644 --- a/noncore/apps/opie-console/function_keyboard.cpp +++ b/noncore/apps/opie-console/function_keyboard.cpp | |||
@@ -2,3 +2,4 @@ | |||
2 | #include <qsizepolicy.h> | 2 | #include <qsizepolicy.h> |
3 | #include <qwindowsystem_qws.h> | 3 | #include <qevent.h> |
4 | #include <qapplication.h> | ||
4 | 5 | ||
@@ -94,3 +95,3 @@ void FunctionKeyboard::mousePressEvent(QMouseEvent *e) { | |||
94 | pressedRow = e->y() / keyHeight; | 95 | pressedRow = e->y() / keyHeight; |
95 | pressedCol = e->x() / keyWidth; | 96 | pressedCol = (int) (e->x() / keyWidth); |
96 | 97 | ||
@@ -103,2 +104,6 @@ void FunctionKeyboard::mousePressEvent(QMouseEvent *e) { | |||
103 | //qwsServer->sendKeyEvent(0x41, 0, 0, 1, 0); | 104 | //qwsServer->sendKeyEvent(0x41, 0, 0, 1, 0); |
105 | |||
106 | QKeyEvent ke(QEvent::KeyPress, k.getQ(), k.getU(), 0); | ||
107 | QApplication::sendEvent(this, &ke); | ||
108 | |||
104 | } | 109 | } |
@@ -116,2 +121,4 @@ void FunctionKeyboard::mouseReleaseEvent(QMouseEvent *) { | |||
116 | //qwsServer->sendKeyEvent(k.getU(), k.getQ(), 0, 0, 0); | 121 | //qwsServer->sendKeyEvent(k.getU(), k.getQ(), 0, 0, 0); |
122 | QKeyEvent ke(QEvent::KeyRelease, k.getQ(), k.getU(), 0); | ||
123 | QApplication::sendEvent(this, &ke); | ||
117 | } | 124 | } |