mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
Revert "remove now obsolete workaround for X11 macros"
This reverts commit 545dc7141b
.
This commit is contained in:
parent
c307801f69
commit
5f6adfe070
1 changed files with 12 additions and 0 deletions
|
@ -51,6 +51,18 @@
|
|||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef QT_LINUXBASE
|
||||
// LSB's IsKeypadKey define is wrong - see
|
||||
// http://bugs.linuxbase.org/show_bug.cgi?id=2521
|
||||
#undef IsKeypadKey
|
||||
#define IsKeypadKey(keysym) \
|
||||
(((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal))
|
||||
|
||||
#undef IsPrivateKeypadKey
|
||||
#define IsPrivateKeypadKey(keysym) \
|
||||
(((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF))
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
// from qapplication_x11.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue