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 /apps/ktorrent/pref.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 'apps/ktorrent/pref.h')
-rw-r--r-- | apps/ktorrent/pref.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/apps/ktorrent/pref.h b/apps/ktorrent/pref.h index f8852cd..b100595 100644 --- a/apps/ktorrent/pref.h +++ b/apps/ktorrent/pref.h @@ -23,8 +23,8 @@ #define _KTORRENTPREF_H_ #include <kdialogbase.h> -#include <qframe.h> -#include <qmap.h> +#include <tqframe.h> +#include <tqmap.h> #include <interfaces/prefpageinterface.h> @@ -32,7 +32,7 @@ class DownloadPref; class GeneralPref; class AdvancedPref; class KTorrent; -class QListViewItem; +class TQListViewItem; class DownloadPrefPage : public kt::PrefPageInterface @@ -44,13 +44,14 @@ public: virtual bool apply(); virtual void updateData(); - virtual void createWidget(QWidget* parent); + virtual void createWidget(TQWidget* tqparent); virtual void deleteWidget(); }; -class GeneralPrefPage : public QObject,public kt::PrefPageInterface +class GeneralPrefPage : public TQObject,public kt::PrefPageInterface { - Q_OBJECT + Q_OBJECT + TQ_OBJECT GeneralPref* gp; public: GeneralPrefPage(); @@ -58,7 +59,7 @@ public: virtual bool apply(); virtual void updateData(); - virtual void createWidget(QWidget* parent); + virtual void createWidget(TQWidget* tqparent); virtual void deleteWidget(); private slots: @@ -68,9 +69,10 @@ private slots: void useEncryptionChecked(bool on); }; -class AdvancedPrefPage : public QObject,public kt::PrefPageInterface +class AdvancedPrefPage : public TQObject,public kt::PrefPageInterface { Q_OBJECT + TQ_OBJECT AdvancedPref* ap; public: @@ -79,7 +81,7 @@ public: virtual bool apply(); virtual void updateData(); - virtual void createWidget(QWidget* parent); + virtual void createWidget(TQWidget* tqparent); virtual void deleteWidget(); private slots: @@ -93,6 +95,7 @@ private slots: class KTorrentPreferences : public KDialogBase { Q_OBJECT + TQ_OBJECT public: KTorrentPreferences(KTorrent & ktor); virtual ~KTorrentPreferences(); @@ -110,7 +113,7 @@ private: DownloadPrefPage* page_one; GeneralPrefPage* page_two; AdvancedPrefPage* page_three; - QMap<kt::PrefPageInterface*,QFrame*> pages; + TQMap<kt::PrefPageInterface*,TQFrame*> pages; bool validation_err; }; |