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/registersearchline.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/registersearchline.h')
-rw-r--r-- | kmymoney2/widgets/registersearchline.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/kmymoney2/widgets/registersearchline.h b/kmymoney2/widgets/registersearchline.h index d495ab1..e9fcb39 100644 --- a/kmymoney2/widgets/registersearchline.h +++ b/kmymoney2/widgets/registersearchline.h @@ -21,7 +21,7 @@ // ---------------------------------------------------------------------------- // QT Includes -#include <qhbox.h> +#include <tqhbox.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -46,6 +46,7 @@ namespace KMyMoneyRegister { class KMYMONEY_EXPORT RegisterSearchLine : public KLineEdit { Q_OBJECT + TQ_OBJECT public: /** * Constructs a RegisterSearchLine with @a reg being the register to be @@ -54,14 +55,14 @@ public: * If @a reg is null then the widget will be disabled until a register * is set with setRegister(). */ - RegisterSearchLine(QWidget* parent = 0, Register* reg = 0, const char* name = 0); + RegisterSearchLine(TQWidget* tqparent = 0, Register* reg = 0, const char* name = 0); /** * Constructs a RegisterSearchLine * * The widget will be disabled until a register is set with setRegister(). */ - RegisterSearchLine(QWidget* parent = 0, const char* name = 0); + RegisterSearchLine(TQWidget* tqparent = 0, const char* name = 0); /** * Destroys the object @@ -77,14 +78,14 @@ public: void setRegister(Register* reg); protected: - virtual bool itemMatches(const RegisterItem* item, const QString& s) const; + virtual bool itemMatches(const RegisterItem* item, const TQString& s) const; public slots: - virtual void updateSearch(const QString& s = QString::null); + virtual void updateSearch(const TQString& s = TQString()); virtual void reset(void); protected slots: - void queueSearch(const QString& search); + void queueSearch(const TQString& search); void activateSearch(void); void slotStatusChanged(int); @@ -106,15 +107,16 @@ private: * * @author Thomas Baumgart */ -class KMYMONEY_EXPORT RegisterSearchLineWidget : public QHBox +class KMYMONEY_EXPORT RegisterSearchLineWidget : public TQHBox { Q_OBJECT + TQ_OBJECT public: /** - * Creates a RegisterSearchLineWidget for @a reg with @a parent as the - * parent and with @a name. + * Creates a RegisterSearchLineWidget for @a reg with @a tqparent as the + * tqparent and with @a name. */ - RegisterSearchLineWidget(Register* reg = 0, QWidget* parent = 0, const char* name = 0); + RegisterSearchLineWidget(Register* reg = 0, TQWidget* tqparent = 0, const char* name = 0); /** * Destroys the object |