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/peerview.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/peerview.h')
-rw-r--r-- | plugins/infowidget/peerview.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/infowidget/peerview.h b/plugins/infowidget/peerview.h index a4a8b94..e7e403b 100644 --- a/plugins/infowidget/peerview.h +++ b/plugins/infowidget/peerview.h @@ -20,11 +20,11 @@ #ifndef PEERVIEW_H #define PEERVIEW_H -#include <qmap.h> +#include <tqmap.h> #include <klistview.h> -#include <qlistview.h> +#include <tqlistview.h> #include <kpopupmenu.h> -#include <qpoint.h> +#include <tqpoint.h> #include <util/constants.h> namespace kt @@ -35,7 +35,7 @@ namespace kt class PeerViewItem : public KListViewItem { kt::PeerInterface* peer; - QString m_country; + TQString m_country; bt::Uint32 ip; // counter to keep track of how many PeerViewItem objects are in existence static bt::Uint32 pvi_count; @@ -44,7 +44,7 @@ namespace kt virtual ~PeerViewItem(); void update(); - int compare(QListViewItem * i,int col,bool) const; + int compare(TQListViewItem * i,int col,bool) const; kt::PeerInterface* getPeer() { return peer; } }; @@ -55,10 +55,11 @@ namespace kt class PeerView : public KListView { Q_OBJECT + TQ_OBJECT - QMap<kt::PeerInterface*,PeerViewItem*> items; + TQMap<kt::PeerInterface*,PeerViewItem*> items; public: - PeerView(QWidget *parent = 0, const char *name = 0); + PeerView(TQWidget *tqparent = 0, const char *name = 0); virtual ~PeerView(); public slots: @@ -68,7 +69,7 @@ namespace kt void kickPeer(kt::PeerInterface* peer); void update(); void removeAll(); - void showContextMenu(KListView* ,QListViewItem* item,const QPoint & p); + void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p); void contextItem(int id); private: KPopupMenu* menu; |