From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- libktorrent/interfaces/filetreeitem.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libktorrent/interfaces/filetreeitem.cpp') 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); } } -- cgit v1.2.3