diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/infowidget/fileview.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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 'plugins/infowidget/fileview.h')
-rw-r--r-- | plugins/infowidget/fileview.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 <klistview.h> #include <util/constants.h> -#include <qtimer.h> +#include <tqtimer.h> 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; |