diff options
Diffstat (limited to 'kspy/navview.cpp')
-rw-r--r-- | kspy/navview.cpp | 12 |
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 ); } } |