Removed X dependency when compiled with Qt

This commit is contained in:
Xawotihs
2010-10-07 21:44:04 +00:00
parent f2a6a3e46e
commit d331b93e66

View File

@@ -17,7 +17,10 @@ const KeyRep& translateKey(LocalKeySym key) {
return res->second;
}
char* str = XKeysymToString(key);
char* str = NULL;
#ifndef QT_CONFIG
str = XKeysymToString(key);
#endif // QT_CONFIG
if (!str)
{
str = NEW char[11];