summaryrefslogtreecommitdiff
authorhash <hash>2002-10-13 01:56:34 (UTC)
committer hash <hash>2002-10-13 01:56:34 (UTC)
commit173c272fa2dc860dbb2ff54b6be2680c544340bb (patch) (side-by-side diff)
tree345b83e9f72d9c0d2ec9e1f6d9c75576eef0ac2d
parent7d5d4758d459b744be27e5fbd8b9a2735d7c13f4 (diff)
downloadopie-173c272fa2dc860dbb2ff54b6be2680c544340bb.zip
opie-173c272fa2dc860dbb2ff54b6be2680c544340bb.tar.gz
opie-173c272fa2dc860dbb2ff54b6be2680c544340bb.tar.bz2
better disable that for now
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/function_keyboard.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/function_keyboard.cpp b/noncore/apps/opie-console/function_keyboard.cpp
index 9b036f3..d8ade69 100644
--- a/noncore/apps/opie-console/function_keyboard.cpp
+++ b/noncore/apps/opie-console/function_keyboard.cpp
@@ -79,49 +79,49 @@ void FunctionKeyboard::paintKey(int row, int col) {
p.fillRect(QRect(QPoint(col * keyWidth + 1, row * keyHeight + 1),
QPoint((col + 1) * keyWidth - 1, row * keyHeight + keyHeight- 1)),
(pressedRow != -1 && pressedCol != -1 ) ? QColor(97,119,155) : QColor(255,255,255));
p.drawText(
col * keyWidth + 1, row * keyHeight + 1,
keyWidth, keyHeight,
Qt::AlignHCenter | Qt::AlignVCenter,
keys["r" + QString::number(row) + "c" + QString::number(col)].getL()
);
}
void FunctionKeyboard::mousePressEvent(QMouseEvent *e) {
pressedRow = e->y() / keyHeight;
pressedCol = e->x() / keyWidth;
paintKey(pressedRow, pressedCol);
// emit that sucker!
FKey k = keys["r" + QString::number(pressedRow) + "c" + QString::number(pressedCol)];
//QWSServer::sendKeyEvent(k.getU(), k.getQ(), 0, 1, 0);
//qwsServer->sendKeyEvent(k.getU(), k.getQ(), 0, 1, 0);
- qwsServer->sendKeyEvent(0x41, 0, 0, 1, 0);
+ //qwsServer->sendKeyEvent(0x41, 0, 0, 1, 0);
}
void FunctionKeyboard::mouseReleaseEvent(QMouseEvent *) {
if (pressedRow != -1 && pressedRow != -1) {
int row = pressedRow; pressedRow = -1;
int col = pressedCol; pressedCol = -1;
paintKey(row, col);
FKey k = keys["r" + QString::number(row) + "c" + QString::number(col)];
//QWSServer::sendKeyEvent(k.getU(), k.getQ(), 0, 0, 0);
//qwsServer->sendKeyEvent(k.getU(), k.getQ(), 0, 0, 0);
}
}
void FunctionKeyboard::resizeEvent(QResizeEvent*) {
/* set he default font height/width */
QFontMetrics fm=fontMetrics();
keyHeight = fm.lineSpacing() + 2;
keyWidth = (double)width()/numCols;