From fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 5 Jul 2011 06:00:29 +0000 Subject: TQt4 port kmymoney This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/widgets/kguiutils.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'kmymoney2/widgets/kguiutils.h') diff --git a/kmymoney2/widgets/kguiutils.h b/kmymoney2/widgets/kguiutils.h index 9a7b603..94cd756 100644 --- a/kmymoney2/widgets/kguiutils.h +++ b/kmymoney2/widgets/kguiutils.h @@ -21,9 +21,9 @@ // ---------------------------------------------------------------------------- // QT Includes -#include -#include -class QWidget; +#include +#include +class TQWidget; // ---------------------------------------------------------------------------- // KDE Includes @@ -37,27 +37,28 @@ class QWidget; /** * @author Tony Bloomfield */ -class kMandatoryFieldGroup : public QObject +class kMandatoryFieldGroup : public TQObject { Q_OBJECT + TQ_OBJECT public: - kMandatoryFieldGroup(QObject *parent) : - QObject(parent), okButton(0), m_enabled(true) {} + kMandatoryFieldGroup(TQObject *tqparent) : + TQObject(tqparent), okButton(0), m_enabled(true) {} /** * This method adds a widget to the list of mandatory fields for the current dialog * * @param widget pointer to the widget to be added */ - void add(QWidget *widget); + void add(TQWidget *widget); /** * This method removes a widget form the list of mandatory fields for the current dialog * * @param widget pointer to the widget to be removed */ - void remove(QWidget *widget); + void remove(TQWidget *widget); /** * This method designates the button to be enabled when all mandatory fields @@ -65,7 +66,7 @@ public: * * @param button pointer to the 'ok' button */ - void setOkButton(QPushButton *button); + void setOkButton(TQPushButton *button); /** * This method returns if all requirements for the mandatory group @@ -86,8 +87,8 @@ signals: void stateChanged(bool state); private: - QValueList widgets; - QPushButton* okButton; + TQValueList widgets; + TQPushButton* okButton; bool m_enabled; }; -- cgit v1.2.1