summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqt.h')
-rw-r--r--qtinterface/tqt.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/qtinterface/tqt.h b/qtinterface/tqt.h
index 4c14184..fdd3e94 100644
--- a/qtinterface/tqt.h
+++ b/qtinterface/tqt.h
@@ -22,7 +22,11 @@ Boston, MA 02110-1301, USA.
#ifndef TQT_H
#define TQT_H
-#define USE_QTX
+#define USE_QTX // WARNING: KEEP THIS ON LINE 25 AT ALL TIMES OTHERWISE BUILD FAILURE WILL OCCUR
+
+#ifdef USE_QTX
+#define USE_QT3 // Default to Qt3
+#endif
#ifdef USE_QT4
#define QT3_SUPPORT
@@ -382,9 +386,9 @@ Boston, MA 02110-1301, USA.
#define TQNetworkOperation QNetworkOperation
#define TQObjectCleanupHandler QObjectCleanupHandler
#define TQObjectDictionary QObjectDictionary
-#define TQObject QObject
+//#define TQObject QObject
#define TQObjectUserData QObjectUserData
-#define TQObject QObject
+//#define TQObject QObject
#define TQObjectList QObjectList
#define TQObjectListIterator QObjectListIterator
#define TQObjectListIt QObjectListIt
@@ -614,7 +618,7 @@ Boston, MA 02110-1301, USA.
#define tqStatus Status
#define tqmetaObject metaObject
#define tqfind find
-#define tqchildren children
+//#define tqchildren children
#define tqsetObjectName setObjectName
#define tqtopLevelWidget topLevelWidget
#define tqparent parent
@@ -683,7 +687,7 @@ Boston, MA 02110-1301, USA.
#define TQT_TQMETAOBJECT(x) (static_cast<TQMetaObject*>(static_cast<QMetaObject*>(x)))
#define TQT_TQSTYLEOPTION(x) (static_cast<TQStyleOption*>(static_cast<TQStyleOption*>(x)))
-#define TQT_TQOBJECT_OBJECT(x) x
+#define TQT_TQOBJECT_OBJECT(x) (convertFromQObject(x))
#define TQT_TQSIZEPOLICY_OBJECT(x) x
#define TQT_TQLAYOUT_OBJECT(x) x
#define TQT_TQCOLOR_OBJECT(x) x