From df2e39d7a8ad016787dfe560842828580c109d1d Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 1 Jan 2011 22:40:03 +0000 Subject: Additional FTBFS fixes git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1210728 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qtinterface/tqobject.cpp | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'qtinterface/tqobject.cpp') diff --git a/qtinterface/tqobject.cpp b/qtinterface/tqobject.cpp index 3029a5f..351e799 100644 --- a/qtinterface/tqobject.cpp +++ b/qtinterface/tqobject.cpp @@ -22,6 +22,40 @@ Boston, MA 02110-1301, USA. #include #include +#ifdef USE_QT3 +#include +#include "tqobjectlist.h" + +const TQObjectList TQObject::tqchildren() const +{ +// return *children(); + + QObjectList qlr; + TQObjectList tqt_tqobject_list; + qlr = *(this->children()); + tqt_tqobject_list.clear(); + for (int i = 0; i < qlr.count(); ++i) { + tqt_tqobject_list.append(static_cast(qlr.at(i))); + } + return tqt_tqobject_list; +} + +const TQObjectList TQObject::tqobjectTrees() +{ +// return *objectTrees(); + + QObjectList qlr; + TQObjectList tqt_tqobject_list; + qlr = *objectTrees(); + tqt_tqobject_list.clear(); + for (int i = 0; i < qlr.count(); ++i) { + tqt_tqobject_list.append(static_cast(qlr.at(i))); + } + return tqt_tqobject_list; +} + +#endif // USE_QT3 + #ifdef USE_QT4 const QObjectList *QObject::objectTrees() { @@ -51,4 +85,4 @@ bool QObject::qt_invoke(int slot, QUObject* uo) { return method.invoke(this, Qt::DirectConnection); } -#endif \ No newline at end of file +#endif -- cgit v1.2.3