47 #include <QtGui/QWindowSystemInterface> 49 #include <QtCore/QTextCodec> 51 #ifndef XK_ISO_Left_Tab 52 #define XK_ISO_Left_Tab 0xFE20 56 #define XK_dead_hook 0xFE61 60 #define XK_dead_horn 0xFE62 64 #define XK_Codeinput 0xFF37 67 #ifndef XK_Kanji_Bangou 68 #define XK_Kanji_Bangou 0xFF37 73 #define XK_KP_Home 0xFF95 76 #define XK_KP_Left 0xFF96 79 #define XK_KP_Up 0xFF97 82 #define XK_KP_Right 0xFF98 85 #define XK_KP_Down 0xFF99 88 #define XK_KP_Prior 0xFF9A 91 #define XK_KP_Next 0xFF9B 94 #define XK_KP_End 0xFF9C 97 #define XK_KP_Insert 0xFF9E 100 #define XK_KP_Delete 0xFF9F 105 #define XF86XK_MonBrightnessUp 0x1008FF02 106 #define XF86XK_MonBrightnessDown 0x1008FF03 107 #define XF86XK_KbdLightOnOff 0x1008FF04 108 #define XF86XK_KbdBrightnessUp 0x1008FF05 109 #define XF86XK_KbdBrightnessDown 0x1008FF06 110 #define XF86XK_Standby 0x1008FF10 111 #define XF86XK_AudioLowerVolume 0x1008FF11 112 #define XF86XK_AudioMute 0x1008FF12 113 #define XF86XK_AudioRaiseVolume 0x1008FF13 114 #define XF86XK_AudioPlay 0x1008FF14 115 #define XF86XK_AudioStop 0x1008FF15 116 #define XF86XK_AudioPrev 0x1008FF16 117 #define XF86XK_AudioNext 0x1008FF17 118 #define XF86XK_HomePage 0x1008FF18 119 #define XF86XK_Mail 0x1008FF19 120 #define XF86XK_Start 0x1008FF1A 121 #define XF86XK_Search 0x1008FF1B 122 #define XF86XK_AudioRecord 0x1008FF1C 123 #define XF86XK_Calculator 0x1008FF1D 124 #define XF86XK_Memo 0x1008FF1E 125 #define XF86XK_ToDoList 0x1008FF1F 126 #define XF86XK_Calendar 0x1008FF20 127 #define XF86XK_PowerDown 0x1008FF21 128 #define XF86XK_ContrastAdjust 0x1008FF22 129 #define XF86XK_Back 0x1008FF26 130 #define XF86XK_Forward 0x1008FF27 131 #define XF86XK_Stop 0x1008FF28 132 #define XF86XK_Refresh 0x1008FF29 133 #define XF86XK_PowerOff 0x1008FF2A 134 #define XF86XK_WakeUp 0x1008FF2B 135 #define XF86XK_Eject 0x1008FF2C 136 #define XF86XK_ScreenSaver 0x1008FF2D 137 #define XF86XK_WWW 0x1008FF2E 138 #define XF86XK_Sleep 0x1008FF2F 139 #define XF86XK_Favorites 0x1008FF30 140 #define XF86XK_AudioPause 0x1008FF31 141 #define XF86XK_AudioMedia 0x1008FF32 142 #define XF86XK_MyComputer 0x1008FF33 143 #define XF86XK_LightBulb 0x1008FF35 144 #define XF86XK_Shop 0x1008FF36 145 #define XF86XK_History 0x1008FF37 146 #define XF86XK_OpenURL 0x1008FF38 147 #define XF86XK_AddFavorite 0x1008FF39 148 #define XF86XK_HotLinks 0x1008FF3A 149 #define XF86XK_BrightnessAdjust 0x1008FF3B 150 #define XF86XK_Finance 0x1008FF3C 151 #define XF86XK_Community 0x1008FF3D 152 #define XF86XK_AudioRewind 0x1008FF3E 153 #define XF86XK_BackForward 0x1008FF3F 154 #define XF86XK_Launch0 0x1008FF40 155 #define XF86XK_Launch1 0x1008FF41 156 #define XF86XK_Launch2 0x1008FF42 157 #define XF86XK_Launch3 0x1008FF43 158 #define XF86XK_Launch4 0x1008FF44 159 #define XF86XK_Launch5 0x1008FF45 160 #define XF86XK_Launch6 0x1008FF46 161 #define XF86XK_Launch7 0x1008FF47 162 #define XF86XK_Launch8 0x1008FF48 163 #define XF86XK_Launch9 0x1008FF49 164 #define XF86XK_LaunchA 0x1008FF4A 165 #define XF86XK_LaunchB 0x1008FF4B 166 #define XF86XK_LaunchC 0x1008FF4C 167 #define XF86XK_LaunchD 0x1008FF4D 168 #define XF86XK_LaunchE 0x1008FF4E 169 #define XF86XK_LaunchF 0x1008FF4F 170 #define XF86XK_ApplicationLeft 0x1008FF50 171 #define XF86XK_ApplicationRight 0x1008FF51 172 #define XF86XK_Book 0x1008FF52 173 #define XF86XK_CD 0x1008FF53 174 #define XF86XK_Calculater 0x1008FF54 175 #define XF86XK_Clear 0x1008FF55 176 #define XF86XK_ClearGrab 0x1008FE21 177 #define XF86XK_Close 0x1008FF56 178 #define XF86XK_Copy 0x1008FF57 179 #define XF86XK_Cut 0x1008FF58 180 #define XF86XK_Display 0x1008FF59 181 #define XF86XK_DOS 0x1008FF5A 182 #define XF86XK_Documents 0x1008FF5B 183 #define XF86XK_Excel 0x1008FF5C 184 #define XF86XK_Explorer 0x1008FF5D 185 #define XF86XK_Game 0x1008FF5E 186 #define XF86XK_Go 0x1008FF5F 187 #define XF86XK_iTouch 0x1008FF60 188 #define XF86XK_LogOff 0x1008FF61 189 #define XF86XK_Market 0x1008FF62 190 #define XF86XK_Meeting 0x1008FF63 191 #define XF86XK_MenuKB 0x1008FF65 192 #define XF86XK_MenuPB 0x1008FF66 193 #define XF86XK_MySites 0x1008FF67 194 #define XF86XK_News 0x1008FF69 195 #define XF86XK_OfficeHome 0x1008FF6A 196 #define XF86XK_Option 0x1008FF6C 197 #define XF86XK_Paste 0x1008FF6D 198 #define XF86XK_Phone 0x1008FF6E 199 #define XF86XK_Reply 0x1008FF72 200 #define XF86XK_Reload 0x1008FF73 201 #define XF86XK_RotateWindows 0x1008FF74 202 #define XF86XK_RotationPB 0x1008FF75 203 #define XF86XK_RotationKB 0x1008FF76 204 #define XF86XK_Save 0x1008FF77 205 #define XF86XK_Send 0x1008FF7B 206 #define XF86XK_Spell 0x1008FF7C 207 #define XF86XK_SplitScreen 0x1008FF7D 208 #define XF86XK_Support 0x1008FF7E 209 #define XF86XK_TaskPane 0x1008FF7F 210 #define XF86XK_Terminal 0x1008FF80 211 #define XF86XK_Tools 0x1008FF81 212 #define XF86XK_Travel 0x1008FF82 213 #define XF86XK_Video 0x1008FF87 214 #define XF86XK_Word 0x1008FF89 215 #define XF86XK_Xfer 0x1008FF8A 216 #define XF86XK_ZoomIn 0x1008FF8B 217 #define XF86XK_ZoomOut 0x1008FF8C 218 #define XF86XK_Away 0x1008FF8D 219 #define XF86XK_Messenger 0x1008FF8E 220 #define XF86XK_WebCam 0x1008FF8F 221 #define XF86XK_MailForward 0x1008FF90 222 #define XF86XK_Pictures 0x1008FF91 223 #define XF86XK_Music 0x1008FF92 224 #define XF86XK_Battery 0x1008FF93 225 #define XF86XK_Bluetooth 0x1008FF94 226 #define XF86XK_WLAN 0x1008FF95 227 #define XF86XK_UWB 0x1008FF96 228 #define XF86XK_AudioForward 0x1008FF97 229 #define XF86XK_AudioRepeat 0x1008FF98 230 #define XF86XK_AudioRandomPlay 0x1008FF99 231 #define XF86XK_Subtitle 0x1008FF9A 232 #define XF86XK_AudioCycleTrack 0x1008FF9B 233 #define XF86XK_Time 0x1008FF9F 234 #define XF86XK_Select 0x1008FFA0 235 #define XF86XK_View 0x1008FFA1 236 #define XF86XK_TopMenu 0x1008FFA2 237 #define XF86XK_Suspend 0x1008FFA7 238 #define XF86XK_Hibernate 0x1008FFA8 244 #define QTOPIAXK_Select 0x11000601 245 #define QTOPIAXK_Yes 0x11000602 246 #define QTOPIAXK_No 0x11000603 247 #define QTOPIAXK_Cancel 0x11000604 248 #define QTOPIAXK_Printer 0x11000605 249 #define QTOPIAXK_Execute 0x11000606 250 #define QTOPIAXK_Sleep 0x11000607 251 #define QTOPIAXK_Play 0x11000608 252 #define QTOPIAXK_Zoom 0x11000609 253 #define QTOPIAXK_Context1 0x1100060A 254 #define QTOPIAXK_Context2 0x1100060B 255 #define QTOPIAXK_Context3 0x1100060C 256 #define QTOPIAXK_Context4 0x1100060D 257 #define QTOPIAXK_Call 0x1100060E 258 #define QTOPIAXK_Hangup 0x1100060F 259 #define QTOPIAXK_Flip 0x11000610 586 0x0000, 0x3002, 0x300C, 0x300D, 0x3001, 0x30FB, 0x30F2, 0x30A1,
587 0x30A3, 0x30A5, 0x30A7, 0x30A9, 0x30E3, 0x30E5, 0x30E7, 0x30C3,
588 0x30FC, 0x30A2, 0x30A4, 0x30A6, 0x30A8, 0x30AA, 0x30AB, 0x30AD,
589 0x30AF, 0x30B1, 0x30B3, 0x30B5, 0x30B7, 0x30B9, 0x30BB, 0x30BD,
590 0x30BF, 0x30C1, 0x30C4, 0x30C6, 0x30C8, 0x30CA, 0x30CB, 0x30CC,
591 0x30CD, 0x30CE, 0x30CF, 0x30D2, 0x30D5, 0x30D8, 0x30DB, 0x30DE,
592 0x30DF, 0x30E0, 0x30E1, 0x30E2, 0x30E4, 0x30E6, 0x30E8, 0x30E9,
593 0x30EA, 0x30EB, 0x30EC, 0x30ED, 0x30EF, 0x30F3, 0x309B, 0x309C
597 0x0000, 0x0452, 0x0453, 0x0451, 0x0454, 0x0455, 0x0456, 0x0457,
598 0x0458, 0x0459, 0x045a, 0x045b, 0x045c, 0x0000, 0x045e, 0x045f,
599 0x2116, 0x0402, 0x0403, 0x0401, 0x0404, 0x0405, 0x0406, 0x0407,
600 0x0408, 0x0409, 0x040a, 0x040b, 0x040c, 0x0000, 0x040e, 0x040f,
601 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433,
602 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e,
603 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432,
604 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a,
605 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413,
606 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e,
607 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412,
608 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a
612 0x0000, 0x0386, 0x0388, 0x0389, 0x038a, 0x03aa, 0x0000, 0x038c,
613 0x038e, 0x03ab, 0x0000, 0x038f, 0x0000, 0x0000, 0x0385, 0x2015,
614 0x0000, 0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03ca, 0x0390, 0x03cc,
615 0x03cd, 0x03cb, 0x03b0, 0x03ce, 0x0000, 0x0000, 0x0000, 0x0000,
616 0x0000, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397,
617 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f,
618 0x03a0, 0x03a1, 0x03a3, 0x0000, 0x03a4, 0x03a5, 0x03a6, 0x03a7,
619 0x03a8, 0x03a9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
620 0x0000, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7,
621 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf,
622 0x03c0, 0x03c1, 0x03c3, 0x03c2, 0x03c4, 0x03c5, 0x03c6, 0x03c7,
623 0x03c8, 0x03c9, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
627 0x0000, 0x23B7, 0x250C, 0x2500, 0x2320, 0x2321, 0x2502, 0x23A1,
628 0x23A3, 0x23A4, 0x23A6, 0x239B, 0x239D, 0x239E, 0x23A0, 0x23A8,
629 0x23AC, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
630 0x0000, 0x0000, 0x0000, 0x0000, 0x2264, 0x2260, 0x2265, 0x222B,
631 0x2234, 0x221D, 0x221E, 0x0000, 0x0000, 0x2207, 0x0000, 0x0000,
632 0x223C, 0x2243, 0x0000, 0x0000, 0x0000, 0x21D4, 0x21D2, 0x2261,
633 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x221A, 0x0000,
634 0x0000, 0x0000, 0x2282, 0x2283, 0x2229, 0x222A, 0x2227, 0x2228,
635 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
636 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2202,
637 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0192, 0x0000,
638 0x0000, 0x0000, 0x0000, 0x2190, 0x2191, 0x2192, 0x2193, 0x0000
642 0x25C6, 0x2592, 0x2409, 0x240C, 0x240D, 0x240A, 0x0000, 0x0000,
643 0x2424, 0x240B, 0x2518, 0x2510, 0x250C, 0x2514, 0x253C, 0x23BA,
644 0x23BB, 0x2500, 0x23BC, 0x23BD, 0x251C, 0x2524, 0x2534, 0x252C,
645 0x2502, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
649 0x0000, 0x2003, 0x2002, 0x2004, 0x2005, 0x2007, 0x2008, 0x2009,
650 0x200a, 0x2014, 0x2013, 0x0000, 0x0000, 0x0000, 0x2026, 0x2025,
651 0x2153, 0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215a,
652 0x2105, 0x0000, 0x0000, 0x2012, 0x2329, 0x0000, 0x232a, 0x0000,
653 0x0000, 0x0000, 0x0000, 0x215b, 0x215c, 0x215d, 0x215e, 0x0000,
654 0x0000, 0x2122, 0x2613, 0x0000, 0x25c1, 0x25b7, 0x25cb, 0x25af,
655 0x2018, 0x2019, 0x201c, 0x201d, 0x211e, 0x0000, 0x2032, 0x2033,
656 0x0000, 0x271d, 0x0000, 0x25ac, 0x25c0, 0x25b6, 0x25cf, 0x25ae,
657 0x25e6, 0x25ab, 0x25ad, 0x25b3, 0x25bd, 0x2606, 0x2022, 0x25aa,
658 0x25b2, 0x25bc, 0x261c, 0x261e, 0x2663, 0x2666, 0x2665, 0x0000,
659 0x2720, 0x2020, 0x2021, 0x2713, 0x2717, 0x266f, 0x266d, 0x2642,
660 0x2640, 0x260e, 0x2315, 0x2117, 0x2038, 0x201a, 0x201e, 0x0000
664 0x0000, 0x0000, 0x0000, 0x003c, 0x0000, 0x0000, 0x003e, 0x0000,
665 0x2228, 0x2227, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
666 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
667 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
668 0x00af, 0x0000, 0x22a5, 0x2229, 0x230a, 0x0000, 0x005f, 0x0000,
669 0x0000, 0x0000, 0x2218, 0x0000, 0x2395, 0x0000, 0x22a4, 0x25cb,
670 0x0000, 0x0000, 0x0000, 0x2308, 0x0000, 0x0000, 0x222a, 0x0000,
671 0x2283, 0x0000, 0x2282, 0x0000, 0x22a2, 0x0000, 0x0000, 0x0000,
672 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
673 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
674 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
675 0x0000, 0x0000, 0x0000, 0x0000, 0x22a3, 0x0000, 0x0000, 0x0000
679 0x0000, 0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137,
680 0x3138, 0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f,
681 0x3140, 0x3141, 0x3142, 0x3143, 0x3144, 0x3145, 0x3146, 0x3147,
682 0x3148, 0x3149, 0x314a, 0x314b, 0x314c, 0x314d, 0x314e, 0x314f,
683 0x3150, 0x3151, 0x3152, 0x3153, 0x3154, 0x3155, 0x3156, 0x3157,
684 0x3158, 0x3159, 0x315a, 0x315b, 0x315c, 0x315d, 0x315e, 0x315f,
685 0x3160, 0x3161, 0x3162, 0x3163, 0x11a8, 0x11a9, 0x11aa, 0x11ab,
686 0x11ac, 0x11ad, 0x11ae, 0x11af, 0x11b0, 0x11b1, 0x11b2, 0x11b3,
687 0x11b4, 0x11b5, 0x11b6, 0x11b7, 0x11b8, 0x11b9, 0x11ba, 0x11bb,
688 0x11bc, 0x11bd, 0x11be, 0x11bf, 0x11c0, 0x11c1, 0x11c2, 0x316d,
689 0x3171, 0x3178, 0x317f, 0x3181, 0x3184, 0x3186, 0x318d, 0x318e,
690 0x11eb, 0x11f0, 0x11f9, 0x0000, 0x0000, 0x0000, 0x0000, 0x20a9
698 if (byte4 > 0xa0 && byte4 < 0xe0)
700 else if (byte4 == 0x7e)
701 return QChar(0x203e);
746 Qt::KeyboardModifiers ret = 0;
766 && (sym == XK_Alt_L || sym == XK_Alt_R)) {
773 && (sym == XK_Meta_L || sym == XK_Meta_R)) {
780 && (sym == XK_Super_L || sym == XK_Super_R)) {
787 && (sym == XK_Hyper_L || sym == XK_Hyper_R)) {
795 && sym == XK_Mode_switch) {
799 && sym == XK_Num_Lock) {
827 int &code, Qt::KeyboardModifiers &modifiers,
835 if ( keysym < 0xff00) {
836 unsigned char byte3 = (
unsigned char)(keysym >> 8);
843 mib = byte3 + 4;
break;
860 #if !defined(QT_NO_XIM) 865 if (keysym >= 0x20a0 && keysym <= 0x20ac) {
868 converted = (
uint)keysym;
878 chars[0] = (
unsigned char) (keysym & 0xff);
881 }
else if (keysym >= 0x1000000 && keysym <= 0x100ffff) {
882 converted = (
ushort) (keysym - 0x1000000);
885 if (count < (
int)chars.
size()-1)
889 if (!mapper && converted.
unicode() != 0x0) {
912 if (keysym < 128 || (keysym < 256 && (!mapper || mapper->
mibEnum()==4))) {
914 code = isprint((
int)keysym) ? toupper((
int)keysym) : 0;
915 }
else if (keysym >= XK_F1 && keysym <= XK_F35) {
918 }
else if (keysym >= XK_KP_Space && keysym <= XK_KP_9) {
919 if (keysym >= XK_KP_0) {
921 code =
Qt::Key_0 + ((int)keysym - XK_KP_0);
956 for (
int i = xkbDesc->min_key_code; i < xkbDesc->max_key_code; ++i) {
957 const uint mask = xkbDesc->map->modmap ? xkbDesc->map->modmap[i] : 0;
963 for (
int j = 0; j < XkbKeyGroupsWidth(xkbDesc, i); ++j) {
964 KeySym keySym = XkbKeySym(xkbDesc, i, j);
965 if (keySym == NoSymbol)
970 XkbFreeKeyboard(xkbDesc, XkbAllComponentsMask,
true);
998 count = XLookupString(ev,chars.
data(),chars.
size(),&keySym,0);
#define XF86XK_AudioRepeat
static QTextCodec * codecForLocale()
Returns a pointer to the codec most suitable for this locale.
#define XF86XK_SplitScreen
#define XF86XK_KbdBrightnessUp
#define XF86XK_AudioRecord
#define XF86XK_RotationPB
#define XF86XK_AudioRaiseVolume
#define XF86XK_AudioRandomPlay
QPointer< QWidget > widget
#define XF86XK_MonBrightnessDown
char * data()
Returns a pointer to the data stored in the byte array.
#define XF86XK_AudioRewind
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
#define XF86XK_ApplicationRight
Qt::KeyboardModifiers translateModifiers(int s)
The QByteArray class provides an array of bytes.
Display * nativeDisplay() const
int length() const
Returns the number of characters in this string.
#define XF86XK_MyComputer
static const unsigned short cyrillicKeysymsToUnicode[]
The QString class provides a Unicode character string.
QXlibKeyboard(QXlibScreen *screen)
#define XF86XK_RotationKB
#define XF86XK_AudioForward
The QChar class provides a 16-bit Unicode character.
#define XF86XK_Calculater
static Qt::KeyboardModifiers modifierFromKeyCode(int qtcode)
#define XF86XK_AudioCycleTrack
#define XF86XK_RotateWindows
static const unsigned short katakanaKeysymsToUnicode[]
#define XF86XK_AddFavorite
static const unsigned int KeyTbl[]
#define QTOPIAXK_Context1
void setMask(KeySym sym, uint mask)
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
#define XF86XK_ApplicationLeft
static const unsigned short koreanKeysymsToUnicode[]
#define XF86XK_MonBrightnessUp
virtual int mibEnum() const =0
Subclasses of QTextCodec must reimplement this function.
#define XF86XK_AudioLowerVolume
#define XF86XK_KbdBrightnessDown
#define XF86XK_BackForward
QChar toUpper() const
Returns the uppercase equivalent if the character is lowercase or titlecase; otherwise returns the ch...
static QTextCodec * codecForMib(int mib)
Returns the QTextCodec which matches the MIBenum mib.
static const unsigned short aplKeysymsToUnicode[]
static void handleExtendedKeyEvent(QWidget *w, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1)
#define XF86XK_KbdLightOnOff
QString toUnicode(const QByteArray &) const
Converts a from the encoding of this codec to Unicode, and returns the result in a QString...
static const unsigned short greekKeysymsToUnicode[]
Type
This enum type defines the valid event types in Qt.
static const unsigned short publishingKeysymsToUnicode[]
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
#define QTOPIAXK_Context4
void resize(int size)
Sets the size of the byte array to size bytes.
int translateKeySym(uint key) const
#define QTOPIAXK_Context3
#define XF86XK_AudioMedia
static QChar keysymToUnicode(unsigned char byte3, unsigned char byte4)
int size() const
Returns the number of bytes in this byte array.
#define XF86XK_OfficeHome
static const unsigned short technicalKeysymsToUnicode[]
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
The QTextCodec class provides conversions between text encodings.
#define XF86XK_ScreenSaver
void handleKeyEvent(QWidget *widget, QEvent::Type type, XKeyEvent *ev)
#define XF86XK_BrightnessAdjust
QXlibDisplay * display() const
#define QTOPIAXK_Context2
static const unsigned short specialKeysymsToUnicode[]
#define XF86XK_ContrastAdjust
#define XF86XK_Calculator
#define XF86XK_MailForward