summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/servertreeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/treeviews/servertreeview.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/servertreeview.cpp')
-rw-r--r--quanta/treeviews/servertreeview.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/quanta/treeviews/servertreeview.cpp b/quanta/treeviews/servertreeview.cpp
index 16d42b45..3d410c03 100644
--- a/quanta/treeviews/servertreeview.cpp
+++ b/quanta/treeviews/servertreeview.cpp
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-// Qt includes
+// TQt includes
#include <tqpainter.h>
// KDE includes
@@ -36,8 +36,8 @@
#include "qextfileinfo.h"
-ServerTreeViewItem::ServerTreeViewItem( KFileTreeViewItem *parent, KFileItem* item, KFileTreeBranch *brnch )
-: BaseTreeViewItem( parent, item, brnch)
+ServerTreeViewItem::ServerTreeViewItem( KFileTreeViewItem *tqparent, KFileItem* item, KFileTreeBranch *brnch )
+: BaseTreeViewItem( tqparent, item, brnch)
{
}
@@ -47,9 +47,9 @@ void ServerTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,
TQColorGroup _cg( cg );
KURL baseURL = Project::ref()->projectBaseURL();
KURL relURL = baseURL;
- relURL.setPath(QExtFileInfo::toRelative(url(), branch()->url()).path());
- KURL url = QExtFileInfo::toAbsolute(relURL, baseURL);
- if ( !Project::ref()->contains(url) )
+ relURL.setPath(TQExtFileInfo::toRelative(url(), branch()->url()).path());
+ KURL url = TQExtFileInfo::toAbsolute(relURL, baseURL);
+ if ( !Project::ref()->tqcontains(url) )
{
TQFont f = p->font();
f.setItalic(true);
@@ -63,22 +63,22 @@ void ServerTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg,
}
//ServerTreeBranch implementation
-ServerTreeBranch::ServerTreeBranch(KFileTreeView *parent, const KURL& url,
+ServerTreeBranch::ServerTreeBranch(KFileTreeView *tqparent, const KURL& url,
const TQString& name, const TQPixmap& pix,
bool showHidden, KFileTreeViewItem *branchRoot)
- : BaseTreeBranch(parent, url, name, pix, showHidden, branchRoot)
+ : BaseTreeBranch(tqparent, url, name, pix, showHidden, branchRoot)
{
}
-KFileTreeViewItem* ServerTreeBranch::createTreeViewItem(KFileTreeViewItem *parent, KFileItem *fileItem )
+KFileTreeViewItem* ServerTreeBranch::createTreeViewItem(KFileTreeViewItem *tqparent, KFileItem *fileItem )
{
BaseTreeViewItem *tvi = 0;
- if( parent && fileItem )
+ if( tqparent && fileItem )
{
- tvi = new ServerTreeViewItem( parent, fileItem, this );
+ tvi = new ServerTreeViewItem( tqparent, fileItem, this );
}
else
- kdDebug(24000) << "ServerTreeBranch::createTreeViewItem: Have no parent" << endl;
+ kdDebug(24000) << "ServerTreeBranch::createTreeViewItem: Have no tqparent" << endl;
return tvi;
}
@@ -87,8 +87,8 @@ KFileTreeViewItem* ServerTreeBranch::createTreeViewItem(KFileTreeViewItem *paren
// ServerTreeView implementation
//
//
-ServerTreeView::ServerTreeView(KConfig *config, TQWidget *parent, const KURL &url, const char *name)
- : BaseTreeView(parent, name)
+ServerTreeView::ServerTreeView(KConfig *config, TQWidget *tqparent, const KURL &url, const char *name)
+ : BaseTreeView(tqparent, name)
{
setAcceptDrops(true);
setDragEnabled(true);
@@ -188,7 +188,7 @@ void ServerTreeView::slotReloadTree( ProjectList *fileList, bool buildNewTree, c
TQListViewItemIterator iter(this);
for ( ; iter.current(); ++iter )
{
- iter.current()->repaint();
+ iter.current()->tqrepaint();
}
}