From d88be03ff79b47d2211d719652430eb3780cfc87 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 1 Jan 2011 21:03:36 +0000 Subject: 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 --- qtinterface/tqobject.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'qtinterface/tqobject.h') 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 +#include + +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(&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 */ -- cgit v1.2.3