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 --- plugins/infowidget/fileview.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'plugins/infowidget/fileview.h') diff --git a/plugins/infowidget/fileview.h b/plugins/infowidget/fileview.h index 6a827dc..0e06eba 100644 --- a/plugins/infowidget/fileview.h +++ b/plugins/infowidget/fileview.h @@ -22,7 +22,7 @@ #include #include -#include +#include namespace kt { @@ -35,32 +35,33 @@ namespace kt class FileView : public KListView { Q_OBJECT + TQ_OBJECT public: - FileView(QWidget *parent = 0, const char *name = 0); + FileView(TQWidget *tqparent = 0, const char *name = 0); virtual ~FileView(); void update(); void changeTC(kt::TorrentInterface* tc); private slots: void contextItem(int id); - void showContextMenu(KListView* ,QListViewItem* item,const QPoint & p); + void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p); void refreshFileTree(kt::TorrentInterface* tc); - void onDoubleClicked(QListViewItem* item,const QPoint & ,int ); + void onDoubleClicked(TQListViewItem* item,const TQPoint & ,int ); void fillTreePartial(); private: void fillFileTree(); void readyPreview(); void readyPercentage(); - void changePriority(QListViewItem* item, bt::Priority newpriority); + void changePriority(TQListViewItem* item, bt::Priority newpriority); private: kt::TorrentInterface* curr_tc; IWFileTreeDirItem* multi_root; bool pending_fill; KPopupMenu* context_menu; - QString preview_path; - QTimer fill_timer; + TQString preview_path; + TQTimer fill_timer; int preview_id; int first_id; int normal_id; -- cgit v1.2.1