summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqobject.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-01 21:03:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-01 21:03:36 +0000
commitd88be03ff79b47d2211d719652430eb3780cfc87 (patch)
tree5e5dc5728433e668af5ec8dbf68548386165eb20 /qtinterface/tqobject.h
parent726035ac640c790b839ef68006a24f991fd832a3 (diff)
downloadtqtinterface-d88be03ff79b47d2211d719652430eb3780cfc87.tar.gz
tqtinterface-d88be03ff79b47d2211d719652430eb3780cfc87.zip
API more in line with TQt for Qt4 3.4.0 TPI
This WILL cause Trinity build failures git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1210711 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 */