Removed X dependency when compiled with Qt
This commit is contained in:
@@ -17,7 +17,10 @@ const KeyRep& translateKey(LocalKeySym key) {
|
|||||||
return res->second;
|
return res->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* str = XKeysymToString(key);
|
char* str = NULL;
|
||||||
|
#ifndef QT_CONFIG
|
||||||
|
str = XKeysymToString(key);
|
||||||
|
#endif // QT_CONFIG
|
||||||
if (!str)
|
if (!str)
|
||||||
{
|
{
|
||||||
str = NEW char[11];
|
str = NEW char[11];
|
||||||
|
|||||||
Reference in New Issue
Block a user