summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-09-24 17:03:23 +0200
committerSlávek Banko <[email protected]>2018-09-24 17:03:23 +0200
commitff63338d189a49a16b29a503ba23727cfa7e2e66 (patch)
treec6e82e67044286fe4471e97c8f079a2d205f979a /src/kernel
parent02964eb384e1b5a73a198d04262497607d81e38f (diff)
downloadtqt3-ff63338d189a49a16b29a503ba23727cfa7e2e66.tar.gz
tqt3-ff63338d189a49a16b29a503ba23727cfa7e2e66.zip
Always build with a clean namespace
QT_CLEAN_NAMESPACE constant is no more needed This may theoretically affect applications created for Qt1 and Qt2, but such applications require further modifications as well. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/ntqcursor.h13
-rw-r--r--src/kernel/ntqobjectdefs.h6
-rw-r--r--src/kernel/ntqwindowdefs.h6
-rw-r--r--src/kernel/qapplication_x11.cpp3
-rw-r--r--src/kernel/qjpegio.cpp4
-rw-r--r--src/kernel/qmngio.cpp4
-rw-r--r--src/kernel/qsound_x11.cpp2
-rw-r--r--src/kernel/qtkdeintegration_x11.cpp1
8 files changed, 0 insertions, 39 deletions
diff --git a/src/kernel/ntqcursor.h b/src/kernel/ntqcursor.h
index 70c91e95b..a285637cc 100644
--- a/src/kernel/ntqcursor.h
+++ b/src/kernel/ntqcursor.h
@@ -122,19 +122,6 @@ private:
};
-#if !defined(QT_CLEAN_NAMESPACE)
-// CursorShape is defined in X11/X.h
-#ifdef CursorShape
-#define X_CursorShape CursorShape
-#undef CursorShape
-#endif
-typedef TQt::CursorShape TQCursorShape;
-#ifdef X_CursorShape
-#define CursorShape X_CursorShape
-#endif
-#endif
-
-
/*****************************************************************************
TQCursor stream functions
*****************************************************************************/
diff --git a/src/kernel/ntqobjectdefs.h b/src/kernel/ntqobjectdefs.h
index a3c2ac4da..a8dce0707 100644
--- a/src/kernel/ntqobjectdefs.h
+++ b/src/kernel/ntqobjectdefs.h
@@ -142,12 +142,6 @@ private: \
#define SIGNAL(a) "2"#a
#endif
-#ifndef QT_CLEAN_NAMESPACE
-#define METHOD_CODE 0 // member type codes
-#define SLOT_CODE 1
-#define SIGNAL_CODE 2
-#endif
-
#define TQMETHOD_CODE 0 // member type codes
#define TQSLOT_CODE 1
#define TQSIGNAL_CODE 2
diff --git a/src/kernel/ntqwindowdefs.h b/src/kernel/ntqwindowdefs.h
index 54b18b656..6d57f2148 100644
--- a/src/kernel/ntqwindowdefs.h
+++ b/src/kernel/ntqwindowdefs.h
@@ -188,10 +188,4 @@ typedef void (*TQtCleanUpFunction)();
Q_EXPORT void tqAddPostRoutine( TQtCleanUpFunction );
Q_EXPORT void tqRemovePostRoutine( TQtCleanUpFunction );
-#if !defined(QT_CLEAN_NAMESPACE)
-// source compatibility with TQt 2.x
-typedef TQtCleanUpFunction Q_CleanUpFunction;
-#endif
-
-
#endif // TQWINDOWDEFS_H
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 8e859349c..08402bb1d 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -44,9 +44,6 @@
// provide a proper alternative for others. See also the exports in
// qapplication_win.cpp which suggest a unification.
-// ### needed for solaris-g++ in beta5
-#define QT_CLEAN_NAMESPACE
-
#include "qplatformdefs.h"
// POSIX Large File Support redefines open -> open64
diff --git a/src/kernel/qjpegio.cpp b/src/kernel/qjpegio.cpp
index a6503fcba..037acad57 100644
--- a/src/kernel/qjpegio.cpp
+++ b/src/kernel/qjpegio.cpp
@@ -38,10 +38,6 @@
**
**********************************************************************/
-#ifndef QT_CLEAN_NAMESPACE
-#define QT_CLEAN_NAMESPACE
-#endif
-
#include "ntqimage.h"
#ifndef QT_NO_IMAGEIO_JPEG
diff --git a/src/kernel/qmngio.cpp b/src/kernel/qmngio.cpp
index a7ab00e0c..fa3f9bd5b 100644
--- a/src/kernel/qmngio.cpp
+++ b/src/kernel/qmngio.cpp
@@ -38,10 +38,6 @@
**
**********************************************************************/
-#ifndef QT_CLEAN_NAMESPACE
-#define QT_CLEAN_NAMESPACE
-#endif
-
#include "ntqdatetime.h"
#ifndef QT_NO_IMAGEIO_MNG
diff --git a/src/kernel/qsound_x11.cpp b/src/kernel/qsound_x11.cpp
index 9c2a0dae3..01a2b86b0 100644
--- a/src/kernel/qsound_x11.cpp
+++ b/src/kernel/qsound_x11.cpp
@@ -38,8 +38,6 @@
**
**********************************************************************/
-#define QT_CLEAN_NAMESPACE
-
#include "ntqsound.h"
#ifndef QT_NO_SOUND
diff --git a/src/kernel/qtkdeintegration_x11.cpp b/src/kernel/qtkdeintegration_x11.cpp
index b61920fcf..f49181f78 100644
--- a/src/kernel/qtkdeintegration_x11.cpp
+++ b/src/kernel/qtkdeintegration_x11.cpp
@@ -1,7 +1,6 @@
/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
OpenSUSE as part of their GPLed TQt library disribution */
-#define QT_CLEAN_NAMESPACE
#include "qtkdeintegration_x11_p.h"
#include <ntqcolordialog.h>