summaryrefslogtreecommitdiffstats
path: root/kspy/navview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kspy/navview.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspy/navview.cpp')
-rw-r--r--kspy/navview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kspy/navview.cpp b/kspy/navview.cpp
index 338922d5..388e6bb5 100644
--- a/kspy/navview.cpp
+++ b/kspy/navview.cpp
@@ -23,7 +23,7 @@
#include "navview.h"
#include "navviewitem.h"
-NavView::NavView(TQWidget *parent, const char *name ) : KListView(parent,name)
+NavView::NavView(TQWidget *tqparent, const char *name ) : KListView(tqparent,name)
{
addColumn( i18n( "Name" ) );
addColumn( i18n( "Type" ) );
@@ -70,17 +70,17 @@ void NavView::selectItem( TQListViewItem *item )
emit selected( navItem->data );
}
-void NavView::createSubTree( NavViewItem *parent )
+void NavView::createSubTree( NavViewItem *tqparent )
{
- const TQObjectList *kids = parent->data->children();
- if ( !kids )
+ const TQObjectList kids = tqparent->data->childrenListObject();
+ if ( kids.isEmpty() )
return;
TQObject * obj;
- TQObjectListIt it( *kids );
+ TQObjectListIt it( kids );
while ( (obj=it.current()) != 0 ) {
++it;
- NavViewItem *item = new NavViewItem( parent, obj );
+ NavViewItem *item = new NavViewItem( tqparent, obj );
createSubTree( item );
}
}