summaryrefslogtreecommitdiffstats
path: root/kspy/navview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kspy/navview.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspy/navview.cpp')
-rw-r--r--kspy/navview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kspy/navview.cpp b/kspy/navview.cpp
index 8f6afc8e..338922d5 100644
--- a/kspy/navview.cpp
+++ b/kspy/navview.cpp
@@ -15,15 +15,15 @@
* *
***************************************************************************/
-#include <qobjectlist.h>
-#include <qobjectdict.h>
+#include <tqobjectlist.h>
+#include <tqobjectdict.h>
#include <klocale.h>
#include "navview.h"
#include "navviewitem.h"
-NavView::NavView(QWidget *parent, const char *name ) : KListView(parent,name)
+NavView::NavView(TQWidget *parent, const char *name ) : KListView(parent,name)
{
addColumn( i18n( "Name" ) );
addColumn( i18n( "Type" ) );
@@ -32,8 +32,8 @@ NavView::NavView(QWidget *parent, const char *name ) : KListView(parent,name)
setAllColumnsShowFocus( true );
setFullWidth( true );
- connect( this, SIGNAL( selectionChanged( QListViewItem * ) ),
- this, SLOT( selectItem( QListViewItem * ) ) );
+ connect( this, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ),
+ this, TQT_SLOT( selectItem( TQListViewItem * ) ) );
}
NavView::~NavView(){
@@ -41,10 +41,10 @@ NavView::~NavView(){
void NavView::buildTree()
{
- const QObjectList *roots = QObject::objectTrees();
- QObjectListIt it( *roots );
+ const TQObjectList *roots = TQObject::objectTrees();
+ TQObjectListIt it( *roots );
- QObject * obj;
+ TQObject * obj;
while ( (obj = it.current()) != 0 ) {
++it;
NavViewItem *item = new NavViewItem( this, obj );
@@ -54,8 +54,8 @@ void NavView::buildTree()
void NavView::expandVisibleTree()
{
- QListViewItemIterator it( this, QListViewItemIterator::Visible |
- QListViewItemIterator::Expandable );
+ TQListViewItemIterator it( this, TQListViewItemIterator::Visible |
+ TQListViewItemIterator::Expandable );
while ( it.current() ) {
setOpen( *it, true );
@@ -63,7 +63,7 @@ void NavView::expandVisibleTree()
}
}
-void NavView::selectItem( QListViewItem *item )
+void NavView::selectItem( TQListViewItem *item )
{
NavViewItem *navItem = static_cast<NavViewItem*>( item );
@@ -72,12 +72,12 @@ void NavView::selectItem( QListViewItem *item )
void NavView::createSubTree( NavViewItem *parent )
{
- const QObjectList *kids = parent->data->children();
+ const TQObjectList *kids = parent->data->children();
if ( !kids )
return;
- QObject * obj;
- QObjectListIt it( *kids );
+ TQObject * obj;
+ TQObjectListIt it( *kids );
while ( (obj=it.current()) != 0 ) {
++it;
NavViewItem *item = new NavViewItem( parent, obj );