From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: 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 --- ksirc/chanButtons.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ksirc/chanButtons.h') 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: -- cgit v1.2.1