diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /ksirc/chanButtons.h | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/chanButtons.h')
-rw-r--r-- | ksirc/chanButtons.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ksirc/chanButtons.h b/ksirc/chanButtons.h index c9eab5d5..092a9afd 100644 --- a/ksirc/chanButtons.h +++ b/ksirc/chanButtons.h @@ -16,12 +16,13 @@ class TQLineEdit; class KSircProcess; class KPushButton; -class chanButtons : public QWidget +class chanButtons : public TQWidget { Q_OBJECT + TQ_OBJECT friend class KSircTopLevel; public: - chanButtons(KSircProcess *proc, TQWidget* parent=0, const char* name=0); + chanButtons(KSircProcess *proc, TQWidget* tqparent=0, const char* name=0); ~chanButtons() {}; void setProtectMode(bool value) { protectButton->setOn(value); } @@ -31,7 +32,7 @@ class chanButtons : public QWidget void setMenuItemMode(int, bool); signals: - void mode(TQString, int, TQString nick = TQString::null); /// int == 0 channel mode, int == 1 user nick mode + void mode(TQString, int, TQString nick = TQString()); /// int == 0 channel mode, int == 1 user nick mode private slots: void protectMode(); @@ -47,7 +48,7 @@ class chanButtons : public QWidget private: int toggleMenu[7]; - TQHBoxLayout *layout; + TQHBoxLayout *tqlayout; TQPushButton *protectButton; TQPushButton *moderateButton; TQPushButton *outsideButton; @@ -60,10 +61,11 @@ class chanButtons : public QWidget class chanbuttonsDialog : public KDialog { Q_OBJECT + TQ_OBJECT friend class chanButtons; public: enum type { limited, key }; - chanbuttonsDialog(const type &modeType, TQWidget *parent=0, const char *name=0, bool modal=true); + chanbuttonsDialog(const type &modeType, TQWidget *tqparent=0, const char *name=0, bool modal=true); ~chanbuttonsDialog() {}; private slots: |