Prevent having Status undefined in xlib platform plug-in.
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 10 May 2011 13:42:01 +0000 (15:42 +0200)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 10 May 2011 13:42:01 +0000 (15:42 +0200)
Commit 4b75ceea08815c096ec35a077c5c1e3bfca0e5ed changed
qcoreapplication_p.h to include qsettings.h, which undefines Status.
This breaks the xlib platform plug-in (and its includes).

src/plugins/platforms/xlib/qxlibstatic.h

index 72cfaec..8517de0 100644 (file)
@@ -46,6 +46,9 @@
 #include <QtCore/QDataStream>
 #include <QtCore/QMetaType>
 #include <QtCore/QVariant>
+// qcoreapplication_p.h includes qsettings.h which undefines Status
+// therefore it is included here before the X stuff.
+#include <QtCore/private/qcoreapplication_p.h>
 
 #if defined(_XLIB_H_) // crude hack, but...
 #error "cannot include <X11/Xlib.h> before this file"