summaryrefslogtreecommitdiffstats
path: root/libktorrent/labelview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/labelview.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-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 'libktorrent/labelview.h')
-rw-r--r--libktorrent/labelview.h26
1 files changed, 14 insertions, 12 deletions
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 <list>
-#include <qscrollview.h>
+#include <tqscrollview.h>
#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 <joris.guisson@gmail.com>
*/
- 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