diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-05-13 17:27:24 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-05-13 17:27:24 (GMT) |
commit | 062e913e56a104f7d794cd4a7cecebbd33ead5a9 (patch) | |
tree | 3d8a49e2f867802df3764de6308753ea51b07804 /src/gui/widgets/qsoftkeystack_s60.cpp | |
parent | 913c002c32c62418537e19e491b25d20ac558d49 (diff) | |
download | Qt-062e913e56a104f7d794cd4a7cecebbd33ead5a9.zip Qt-062e913e56a104f7d794cd4a7cecebbd33ead5a9.tar.gz Qt-062e913e56a104f7d794cd4a7cecebbd33ead5a9.tar.bz2 |
QSoftKeyStack::handleSoftKeyPress(int command) will be called whenever
a softkey is pressed.
Diffstat (limited to 'src/gui/widgets/qsoftkeystack_s60.cpp')
-rw-r--r-- | src/gui/widgets/qsoftkeystack_s60.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/qsoftkeystack_s60.cpp b/src/gui/widgets/qsoftkeystack_s60.cpp index 35835f6..9e90fdf 100644 --- a/src/gui/widgets/qsoftkeystack_s60.cpp +++ b/src/gui/widgets/qsoftkeystack_s60.cpp @@ -49,9 +49,6 @@ #include "qsoftkeystack_p.h" -#define SOFTKEYSTART 5000 -#define SOFTKEYEND (5000 + Qt::Key_Context4) - void QSoftKeyStackPrivate::mapSoftKeys(const QSoftkeySet &top) { if (top.count() == 1) { @@ -100,4 +97,8 @@ void QSoftKeyStackPrivate::setNativeSoftKeys() } } - +void QSoftKeyStack::handleSoftKeyPress(int command) +{ + // Do the magic, here. + // Map the command back to actual softkey on the top of the stack and handle it +} |