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/labelview.h | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'libktorrent/labelview.h') diff --git a/libktorrent/labelview.h b/libktorrent/labelview.h index 5e83213..04ddf92 100644 --- a/libktorrent/labelview.h +++ b/libktorrent/labelview.h @@ -21,12 +21,12 @@ #define KTLABELVIEW_H #include -#include +#include #include "labelviewitembase.h" -class QLabel; -class QHBoxLayout; -class QVBoxLayout; +class TQLabel; +class TQHBoxLayout; +class TQVBoxLayout; namespace kt { @@ -38,18 +38,19 @@ namespace kt class LabelViewItem : public LabelViewItemBase { Q_OBJECT + TQ_OBJECT public: - LabelViewItem(const QString & icon,const QString & title,const QString & description,LabelView* view); + LabelViewItem(const TQString & icon,const TQString & title,const TQString & description,LabelView* view); virtual ~LabelViewItem(); /// Set the title of the item - void setTitle(const QString & title); + void setTitle(const TQString & title); /// Set the description - void setDescription(const QString & d); + void setDescription(const TQString & d); /// Set the name of the icon - void setIcon(const QString & icon); + void setIcon(const TQString & icon); /// Set if this is an odd item (they have a different background color) void setOdd(bool odd); @@ -64,7 +65,7 @@ namespace kt virtual bool operator < (const LabelViewItem & item); private: - virtual void mousePressEvent(QMouseEvent *e); + virtual void mousePressEvent(TQMouseEvent *e); signals: void clicked(LabelViewItem* item); @@ -79,11 +80,12 @@ namespace kt /** @author Joris Guisson */ - class LabelView : public QScrollView + class LabelView : public TQScrollView { Q_OBJECT + TQ_OBJECT public: - LabelView(QWidget *parent = 0, const char *name = 0); + LabelView(TQWidget *tqparent = 0, const char *name = 0); virtual ~LabelView(); /// Add an item to the label view @@ -108,7 +110,7 @@ namespace kt void onItemClicked(LabelViewItem* it); private: - void updateOddStatus(); + void updateOddtqStatus(); signals: /// The current item has changed -- cgit v1.2.1