add key 'HomePage'
[feed/video.git] / frameworks / qt5tools / patches / 001-add-further-keys.patch
1 diff -ruN qttools-opensource-src-5.8.0.orig/src/kmap2qmap/main.cpp qttools-opensource-src-5.8.0/src/kmap2qmap/main.cpp
2 --- qttools-opensource-src-5.8.0.orig/src/kmap2qmap/main.cpp 2017-01-02 07:50:13.000000000 +0100
3 +++ qttools-opensource-src-5.8.0/src/kmap2qmap/main.cpp 2017-02-21 03:31:59.598892309 +0100
4 @@ -270,6 +270,8 @@
5 { "Pause", Qt::Key_Pause },
6 { "VolumeDown", Qt::Key_VolumeDown },
7 { "VolumeUp", Qt::Key_VolumeUp },
8 + { "VolumeMute", Qt::Key_VolumeMute },
9 + { "MicMute", Qt::Key_MicMute },
10 { "MediaTogglePlayPause", Qt::Key_MediaTogglePlayPause },
11 { "MediaPlay", Qt::Key_MediaPlay },
12 { "MediaPause", Qt::Key_MediaPause },
13 @@ -286,6 +288,12 @@
14 { "ToggleCallHangup", Qt::Key_ToggleCallHangup },
15 { "VoiceDial" , Qt::Key_VoiceDial },
16 { "LastNumberRedial", Qt::Key_LastNumberRedial },
17 + { "Phone", Qt::Key_Phone },
18 + { "HomePage", Qt::Key_HomePage },
19 + { "Menu", Qt::Key_Menu },
20 + { "Back", Qt::Key_Back },
21 + { "LaunchMail", Qt::Key_LaunchMail },
22 + { "LaunchMedia", Qt::Key_LaunchMedia },
23
24 { "KP_0", Qt::Key_0 | Qt::KeypadModifier },
25 { "KP_1", Qt::Key_1 | Qt::KeypadModifier },
26 @@ -696,8 +704,8 @@
27 if (kcpos >= 0 && kcpos < (tokens.count()-3) && tokens[kcpos+2] == "=") {
28 quint16 keycode = tokens[kcpos+1].toInt();
29
30 - if (keycode <= 0 || keycode > 0x1ff /* KEY_MAX */) {
31 - parseWarning("keycode out of range [0..0x1ff]");
32 + if (keycode <= 0 || keycode > 0x2ff /* KEY_MAX */) {
33 + parseWarning("keycode out of range [0..0x2ff]");
34 break;
35 }
36