From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdevdesigner/designer/designeraction.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'kdevdesigner/designer/designeraction.h') diff --git a/kdevdesigner/designer/designeraction.h b/kdevdesigner/designer/designeraction.h index 0efd69dd..b49874f0 100644 --- a/kdevdesigner/designer/designeraction.h +++ b/kdevdesigner/designer/designeraction.h @@ -22,29 +22,27 @@ #include -class DesignerAction : public QAction +class DesignerAction : public TQAction { Q_OBJECT + TQ_OBJECT public: - DesignerAction(TQObject *parent = 0, const char *name = 0) - :TQAction(parent, name) {} - DesignerAction ( const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 ) - :TQAction(menuText, accel, parent, name) {} - DesignerAction ( const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0 ) - :TQAction(icon, menuText, accel, parent, name) {} - DesignerAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) - :TQAction(text, icon, menuText, accel, parent, name, toggle) {} - DesignerAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * parent, const char * name = 0, bool toggle = FALSE ) - :TQAction(text, menuText, accel, parent, name, toggle) {} - DesignerAction ( TQObject * parent, const char * name, bool toggle ) - :TQAction(parent, name, toggle) {} + DesignerAction(TQObject *tqparent = 0, const char *name = 0) + :TQAction(tqparent, name) {} + DesignerAction ( const TQString & menuText, TQKeySequence accel, TQObject * tqparent, const char * name = 0 ) + :TQAction(menuText, accel, tqparent, name) {} + DesignerAction ( const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * tqparent, const char * name = 0 ) + :TQAction(icon, menuText, accel, tqparent, name) {} + DesignerAction ( const TQString & text, const TQIconSet & icon, const TQString & menuText, TQKeySequence accel, TQObject * tqparent, const char * name = 0, bool toggle = FALSE ) + :TQAction(text, icon, menuText, accel, tqparent, name, toggle) {} + DesignerAction ( const TQString & text, const TQString & menuText, TQKeySequence accel, TQObject * tqparent, const char * name = 0, bool toggle = FALSE ) + :TQAction(text, menuText, accel, tqparent, name, toggle) {} + DesignerAction ( TQObject * tqparent, const char * name, bool toggle ) + :TQAction(tqparent, name, toggle) {} ~DesignerAction(); virtual void setEnabled(bool e); virtual void setDisabled(bool d); -#if QT_VERSION < 0x030300 - virtual void activate(); -#endif signals: void actionEnabled(bool e); -- cgit v1.2.1