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/peerview.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'plugins/infowidget/peerview.h') 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 +#include #include -#include +#include #include -#include +#include #include 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 items; + TQMap 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; -- cgit v1.2.1