SpaceNavigator on Linux: rearrange #includes

This commit is contained in:
Ian Rees
2018-09-16 09:37:06 +12:00
committed by wmayer
parent 7699b43c71
commit d7e970a255
2 changed files with 22 additions and 21 deletions

View File

@@ -25,7 +25,26 @@
#include <QGlobalStatic>
#if defined(Q_OS_LINUX) && defined(SPNAV_FOUND)
#include <QX11Info>
#include <xcb/xcb.h>
#include <spnav.h>
#if QT_VERSION >= 0x050000
#include <X11/Xlib.h>
#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted
#undef False
#undef True
#undef Complex
#endif // #if QT_VERSION >= 0x050000
#endif // if defined(Q_OS_LINUX) && defined(SPNAV_FOUND)
#include <QMainWindow>
#include <QWidget>
@@ -35,10 +54,6 @@
#include "SpaceballEvent.h"
#include "Application.h"
#if defined(Q_OS_LINUX) && defined(SPNAV_FOUND)
#include <spnav.h>
#endif // if defined(Q_OS_LINUX) && defined(SPNAV_FOUND)
#ifdef _USE_3DCONNEXION_SDK
//windows
#ifdef Q_OS_WIN

View File

@@ -32,22 +32,8 @@
class QMainWindow;
#if defined(Q_OS_LINUX)
#include <X11/Xlib.h>
#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted
#undef False
#undef True
#undef Complex
#if defined(Q_OS_LINUX) && QT_VERSION >= 0x050000
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#elif defined(Q_OS_WIN) && defined(_USE_3DCONNEXION_SDK)