summaryrefslogtreecommitdiffstats
path: root/libktorrent/interfaces/filetreeitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/interfaces/filetreeitem.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/interfaces/filetreeitem.cpp')
-rw-r--r--libktorrent/interfaces/filetreeitem.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libktorrent/interfaces/filetreeitem.cpp b/libktorrent/interfaces/filetreeitem.cpp
index 32f265c..666c1a0 100644
--- a/libktorrent/interfaces/filetreeitem.cpp
+++ b/libktorrent/interfaces/filetreeitem.cpp
@@ -32,10 +32,10 @@ using namespace bt;
namespace kt
{
- FileTreeItem::FileTreeItem(FileTreeDirItem* item,const QString & name,kt::TorrentFileInterface & file)
- : QCheckListItem(item,QString::null,QCheckListItem::CheckBox),name(name),file(file)
+ FileTreeItem::FileTreeItem(FileTreeDirItem* item,const TQString & name,kt::TorrentFileInterface & file)
+ : TQCheckListItem(item,TQString(),TQCheckListItem::CheckBox),name(name),file(file)
{
- parent = item;
+ tqparent = item;
manual_change = false;
init();
}
@@ -66,7 +66,7 @@ namespace kt
}
updatePriorityText();
- parent->childStateChange();
+ tqparent->childStateChange();
}
void FileTreeItem::updatePriorityText()
@@ -141,10 +141,10 @@ namespace kt
}
updatePriorityText();
- parent->childStateChange();
+ tqparent->childStateChange();
}
- int FileTreeItem::compare(QListViewItem* i, int col, bool ascending) const
+ int FileTreeItem::compare(TQListViewItem* i, int col, bool ascending) const
{
if (col == 1)
{
@@ -157,8 +157,8 @@ namespace kt
else
{
// lets sort case insensitive
- return QString::compare(text(col).lower(),i->text(col).lower());
- // QCheckListItem::compare(i, col, ascending);
+ return TQString::compare(text(col).lower(),i->text(col).lower());
+ // TQCheckListItem::compare(i, col, ascending);
}
}