summaryrefslogtreecommitdiffstats
path: root/apps/ktorrent/viewmanager.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 /apps/ktorrent/viewmanager.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 'apps/ktorrent/viewmanager.h')
-rw-r--r--apps/ktorrent/viewmanager.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/apps/ktorrent/viewmanager.h b/apps/ktorrent/viewmanager.h
index d008c62..c9465d2 100644
--- a/apps/ktorrent/viewmanager.h
+++ b/apps/ktorrent/viewmanager.h
@@ -20,8 +20,8 @@
#ifndef VIEWMANAGER_H
#define VIEWMANAGER_H
-#include <qobject.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqvaluelist.h>
#include <interfaces/guiinterface.h>
class KConfig;
@@ -32,11 +32,12 @@ class KTorrent;
/**
@author Joris Guisson <joris.guisson@gmail.com>
*/
-class ViewManager : public QObject, public kt::CloseTabListener
+class ViewManager : public TQObject, public kt::CloseTabListener
{
Q_OBJECT
+ TQ_OBJECT
public:
- ViewManager(QObject *parent = 0, const char *name = 0);
+ ViewManager(TQObject *tqparent = 0, const char *name = 0);
virtual ~ViewManager();
/// Create a new view
@@ -73,13 +74,13 @@ public:
* Put the current selection of the current view in a list.
* @param sel The list to put it in
*/
- void getSelection(QValueList<kt::TorrentInterface*> & sel);
+ void getSelection(TQValueList<kt::TorrentInterface*> & sel);
/// Get the current view
KTorrentView* getCurrentView() {return current;}
- virtual bool closeAllowed(QWidget* tab);
- virtual void tabCloseRequest(kt::GUIInterface* gui,QWidget* tab);
+ virtual bool closeAllowed(TQWidget* tab);
+ virtual void tabCloseRequest(kt::GUIInterface* gui,TQWidget* tab);
/// A group was renamed, modify all view which where showing this group
void groupRenamed(kt::Group* g,KTabWidget* mtw);
@@ -104,10 +105,10 @@ public slots:
void checkDataIntegrity();
/// The current tab has changed
- void onCurrentTabChanged(QWidget* w);
+ void onCurrentTabChanged(TQWidget* w);
private:
- QValueList<KTorrentView*> views;
+ TQValueList<KTorrentView*> views;
KTorrentView* current;
};