diff options
author | axis <qt-info@nokia.com> | 2010-02-25 15:40:52 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2010-02-25 16:03:48 (GMT) |
commit | 1dc6431ea5225716d2fc77791d63a7318a980325 (patch) | |
tree | 18ae9c977338a94912f216c42f92ec33045d8106 /src/gui/kernel/qkeymapper_p.h | |
parent | 133f853e569494303fc432f6c6009dd44c504446 (diff) | |
download | Qt-1dc6431ea5225716d2fc77791d63a7318a980325.zip Qt-1dc6431ea5225716d2fc77791d63a7318a980325.tar.gz Qt-1dc6431ea5225716d2fc77791d63a7318a980325.tar.bz2 |
Reduced the code and memory footprint of the keymap.
This was done by using a static const data structure instead of a
list.
RevBy: Alessandro Portale
Diffstat (limited to 'src/gui/kernel/qkeymapper_p.h')
-rw-r--r-- | src/gui/kernel/qkeymapper_p.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/gui/kernel/qkeymapper_p.h b/src/gui/kernel/qkeymapper_p.h index 706ee23..4fbfff0 100644 --- a/src/gui/kernel/qkeymapper_p.h +++ b/src/gui/kernel/qkeymapper_p.h @@ -137,15 +137,6 @@ struct QXCoreDesc { KeySym lock_meaning; }; -#elif defined(Q_OS_SYMBIAN) -#include <e32keys.h> -class KeyMapping{ -public: - KeyMapping(TKeyCode aS60KeyCode, TStdScanCode aS60ScanCode, Qt::Key aQtKey) : s60KeyCode(aS60KeyCode), s60ScanCode(aS60ScanCode), qtKey(aQtKey) { }; - TKeyCode s60KeyCode; - TStdScanCode s60ScanCode; - Qt::Key qtKey; -}; #endif struct KeyboardLayoutItem; @@ -216,9 +207,6 @@ public: KeyboardLayoutItem *keyLayout[256]; #elif defined(Q_WS_QWS) #elif defined(Q_OS_SYMBIAN) -private: - QList<KeyMapping> keyMapping; - void fillKeyMap(); public: QString translateKeyEvent(int keySym, Qt::KeyboardModifiers modifiers); int mapS60KeyToQt(TUint s60key); |