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/registersearchline.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'kmymoney2/widgets/registersearchline.h') 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 +#include // ---------------------------------------------------------------------------- // 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 -- cgit v1.2.1