forked from Raffarti/Touchegg-gce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keylinguist.cpp
32 lines (28 loc) · 986 Bytes
/
keylinguist.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
*This work is licensed under the
*Creative Commons Attribuzione 3.0
*Unported License. To view a copy
*of this license, visit
*http://creativecommons.org/licenses/by/3.0/
*
*Please note that this is not Touchégg nor Touchégg-gui,
*which author is José Expósito <[email protected]>.
*This is a gui interface to edit
*Touchégg configuration file alternative to Touchégg-gui.
*
*@author Raffaele Pertile <[email protected]>
*/
#include "keylinguist.h"
#include <X11/Xlib.h>
#include <QX11Info>
#include <X11/XKBlib.h>
///***+++---WARNING:
//DO NOT MOVE THOSE LIBRARIES TO HEADER FILE, nor add any Qt class include under them
//Seems that they hate each other, or so the compiler said.
//Oh, yeah, and don't use Qt events if you have included them, that's why they're not in keylineedit
KeyLinguist::KeyLinguist()
{
}
QString KeyLinguist::toString(uint keycode){
return QString(XKeysymToString(XkbKeycodeToKeysym(QX11Info::display(),keycode,0,0)));
}