summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqobject.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:12:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:12:15 +0000
commit4c3c7eaa2d225ecc0c16644f1a23e848bf539164 (patch)
treee2ec7ae4bdc3be1f6ffbc999802b6db8db1ad9c3 /qtinterface/tqobject.cpp
parent60cbdb4674377338156be84fc3890358e44f23ba (diff)
downloadtqtinterface-4c3c7eaa2d225ecc0c16644f1a23e848bf539164.tar.gz
tqtinterface-4c3c7eaa2d225ecc0c16644f1a23e848bf539164.zip
Starting work on Qt4 interface...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1158413 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqobject.cpp')
-rw-r--r--qtinterface/tqobject.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/qtinterface/tqobject.cpp b/qtinterface/tqobject.cpp
index 657cfd0..8fb45d9 100644
--- a/qtinterface/tqobject.cpp
+++ b/qtinterface/tqobject.cpp
@@ -20,4 +20,28 @@ Boston, MA 02110-1301, USA.
*/
#include <tqt.h>
-#include <tqobject.h> \ No newline at end of file
+#include <tqobject.h>
+
+#ifdef USE_QT4
+
+static const QObjectList *objectTrees() {
+ QWidgetList widgetlist;
+ QObjectList *objectlist = new QObjectList;
+ widgetlist = QApplication::allWidgets();
+ //widgetlist = QApplication::topLevelWidgets();
+
+ objectlist->clear();
+ foreach (QWidget *curwidget, widgetlist) {
+ objectlist->append((QObject*)curwidget);
+ }
+
+ return objectlist;
+}
+
+const QObjectList *QObject::ptrchildren() const {
+ QObjectList ql;
+ ql = this->children();
+ return &ql;
+}
+
+#endif \ No newline at end of file