diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-05 06:00:29 +0000 |
commit | fecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch) | |
tree | 6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kguiutils.h | |
parent | dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff) | |
download | kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.tar.gz kmymoney-fecb0e67b23e8b83ba7fc881bb57bc48c0852d62.zip |
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
Diffstat (limited to 'kmymoney2/widgets/kguiutils.h')
-rw-r--r-- | kmymoney2/widgets/kguiutils.h | 23 |
1 files changed, 12 insertions, 11 deletions
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 <qobject.h> -#include <qvaluelist.h> -class QWidget; +#include <tqobject.h> +#include <tqvaluelist.h> +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<QWidget *> widgets; - QPushButton* okButton; + TQValueList<TQWidget *> widgets; + TQPushButton* okButton; bool m_enabled; }; |