2013-03-15 13:11:33 +00:00
|
|
|
#include <QApplication>
|
|
|
|
#include <QtGui>
|
2018-06-10 08:06:02 +00:00
|
|
|
#if HIRO_QT==5
|
|
|
|
#include <QtWidgets>
|
|
|
|
#endif
|
2018-08-05 09:00:15 +00:00
|
|
|
#undef foreach
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
#include <nall/xorg/guard.hpp>
|
|
|
|
#define XK_MISCELLANY
|
|
|
|
#define XK_LATIN1
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <X11/keysymdef.h>
|
|
|
|
#undef XK_MISCELLANY
|
|
|
|
#undef XK_LATIN1
|
|
|
|
#include <nall/xorg/guard.hpp>
|
|
|
|
|
|
|
|
//Qt 4.8.0 and earlier improperly define the QLOCATION macro
|
|
|
|
//in C++11, it is detected as a malformed user-defined literal
|
|
|
|
//below is a workaround to fix compilation errors caused by this
|
2018-06-10 08:06:02 +00:00
|
|
|
#if HIRO_QT==4
|
|
|
|
#undef QLOCATION
|
|
|
|
#define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)
|
|
|
|
#endif
|