summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqobject.h')
-rw-r--r--qtinterface/tqobject.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/qtinterface/tqobject.h b/qtinterface/tqobject.h
index f19e493..72e3ec8 100644
--- a/qtinterface/tqobject.h
+++ b/qtinterface/tqobject.h
@@ -30,6 +30,25 @@ Boston, MA 02110-1301, USA.
// For Qt3, no changes are needed
#include <qobject.h>
+#include <qobjectlist.h>
+
+class TQObject : public QObject
+{
+ Q_OBJECT
+
+public:
+ inline TQObject( QObject *tqparent=0, const char *name=0 ) : QObject ( tqparent, name ) {}
+
+ inline const TQObjectList tqchildren() const { return *children(); }
+
+ // Interoperability
+ static const TQObject& convertFromQObject( QObject& ql );
+};
+
+// Interoperability
+inline static const TQObject& convertFromQObject( const QObject& qo ) {
+ return (*static_cast<const TQObject*>(&qo));
+}
#endif // USE_QT3
@@ -42,4 +61,4 @@ Boston, MA 02110-1301, USA.
#endif // USE_QT4
-#endif /* TQOBJECT_H */ \ No newline at end of file
+#endif /* TQOBJECT_H */