summaryrefslogtreecommitdiffstats
path: root/opensuse/core/tqt3/fix-xinput-clash.diff
blob: 0efdb5d7e833e6a76ceb0875c05d0f85e7d2b77e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Index: src/kernel/qtaddons_x11.cpp
===================================================================
--- src/kernel/qtaddons_x11.cpp.orig
+++ src/kernel/qtaddons_x11.cpp
@@ -22,6 +22,10 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifndef TQT_CLEAN_NAMESPACE
+#define TQT_CLEAN_NAMESPACE
+#endif
+
 #include "qt_x11_p.h"
 
 #if !defined(QT_NO_XFTFREETYPE) && !defined(QT_XFT2)
Index: src/kernel/qt_x11_p.h
===================================================================
--- src/kernel/qt_x11_p.h.orig
+++ src/kernel/qt_x11_p.h
@@ -86,7 +86,7 @@
 
 
 // the wacom tablet (currently just the IRIX version)
-#if defined (QT_TABLET_SUPPORT)
+#if defined (QT_TABLET_SUPPORT) && defined (TQT_CLEAN_NAMESPACE)
 #  include <X11/extensions/XInput.h>
 #if defined (Q_OS_IRIX)
 #  include <wacom.h>  // wacom driver defines for IRIX (quite handy)
Index: src/kernel/qwidget_x11.cpp
===================================================================
--- src/kernel/qwidget_x11.cpp.orig
+++ src/kernel/qwidget_x11.cpp
@@ -38,6 +38,10 @@
 **
 **********************************************************************/
 
+#ifndef TQT_CLEAN_NAMESPACE
+#define TQT_CLEAN_NAMESPACE
+#endif
+
 #include "ntqapplication.h"
 #include "qapplication_p.h"
 #include "ntqnamespace.h"