summaryrefslogtreecommitdiffstats
path: root/parts/fileview/stdfiletreewidgetimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/fileview/stdfiletreewidgetimpl.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/fileview/stdfiletreewidgetimpl.cpp')
-rw-r--r--parts/fileview/stdfiletreewidgetimpl.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/fileview/stdfiletreewidgetimpl.cpp b/parts/fileview/stdfiletreewidgetimpl.cpp
index 67a8da28..943f8850 100644
--- a/parts/fileview/stdfiletreewidgetimpl.cpp
+++ b/parts/fileview/stdfiletreewidgetimpl.cpp
@@ -23,10 +23,10 @@
class StdFileTreeViewItem : public filetreeview::FileTreeViewItem
{
public:
- StdFileTreeViewItem( KFileTreeViewItem* parent, KFileItem* item, KFileTreeBranch* branch, bool pf )
- : FileTreeViewItem( parent, item, branch, pf ) {}
- StdFileTreeViewItem( KFileTreeView* parent, KFileItem* item, KFileTreeBranch* branch )
- : FileTreeViewItem( parent, item, branch ) {}
+ StdFileTreeViewItem( KFileTreeViewItem* tqparent, KFileItem* item, KFileTreeBranch* branch, bool pf )
+ : FileTreeViewItem( tqparent, item, branch, pf ) {}
+ StdFileTreeViewItem( KFileTreeView* tqparent, KFileItem* item, KFileTreeBranch* branch )
+ : FileTreeViewItem( tqparent, item, branch ) {}
};
///////////////////////////////////////////////////////////////////////////////
@@ -39,22 +39,22 @@ public:
StdFileTreeBranchItem( KFileTreeView* view, const KURL& url, const TQString& name, const TQPixmap& pix )
: FileTreeBranchItem( view, url, name, pix ) {}
virtual ~StdFileTreeBranchItem() {}
- virtual KFileTreeViewItem* createTreeViewItem( KFileTreeViewItem* parent, KFileItem* fileItem );
+ virtual KFileTreeViewItem* createTreeViewItem( KFileTreeViewItem* tqparent, KFileItem* fileItem );
};
///////////////////////////////////////////////////////////////////////////////
-KFileTreeViewItem* StdFileTreeBranchItem::createTreeViewItem( KFileTreeViewItem* parent, KFileItem* fileItem )
+KFileTreeViewItem* StdFileTreeBranchItem::createTreeViewItem( KFileTreeViewItem* tqparent, KFileItem* fileItem )
{
- if (!parent || !fileItem)
+ if (!tqparent || !fileItem)
return 0;
- FileTreeWidget *lv = static_cast<StdFileTreeViewItem*>( parent )->listView();
+ FileTreeWidget *lv = static_cast<StdFileTreeViewItem*>( tqparent )->listView();
const KURL fileURL = fileItem->url();
const bool isDirectory = lv->isInProject( fileURL.path() );
- return new StdFileTreeViewItem( parent, fileItem, this, isDirectory );
+ return new StdFileTreeViewItem( tqparent, fileItem, this, isDirectory );
}
///////////////////////////////////////////////////////////////////////////////
@@ -74,14 +74,14 @@ public:
// class StdFileTreeWidgetImpl
///////////////////////////////////////////////////////////////////////////////
-StdFileTreeWidgetImpl::StdFileTreeWidgetImpl( FileTreeWidget *parent )
- : FileTreeViewWidgetImpl( parent, "stdfiletreewidgetimpl" )
+StdFileTreeWidgetImpl::StdFileTreeWidgetImpl( FileTreeWidget *tqparent )
+ : FileTreeViewWidgetImpl( tqparent, "stdfiletreewidgetimpl" )
{
kdDebug(9017) << "StdFileTreeWidgetImpl::StdFileTreeWidgetImpl()" << endl;
setBranchItemFactory( new StdBranchItemFactory );
- parent->addColumn( TQString::null );
+ tqparent->addColumn( TQString() );
header()->hide();
}