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/kmymoneycompletion.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'kmymoney2/widgets/kmymoneycompletion.h') diff --git a/kmymoney2/widgets/kmymoneycompletion.h b/kmymoney2/widgets/kmymoneycompletion.h index 1efea63..ca83f0b 100644 --- a/kmymoney2/widgets/kmymoneycompletion.h +++ b/kmymoney2/widgets/kmymoneycompletion.h @@ -26,10 +26,10 @@ // ---------------------------------------------------------------------------- // QT Includes -#include -#include -#include -class QListViewItem; +#include +#include +#include +class TQListViewItem; // ---------------------------------------------------------------------------- // KDE Includes @@ -45,12 +45,13 @@ class KMyMoneySelector; * @author Thomas Baumgart */ -class kMyMoneyCompletion : public QVBox +class kMyMoneyCompletion : public TQVBox { Q_OBJECT + TQ_OBJECT public: - kMyMoneyCompletion(QWidget *parent=0, const char *name=0); + kMyMoneyCompletion(TQWidget *tqparent=0, const char *name=0); virtual ~kMyMoneyCompletion(); /** @@ -70,21 +71,21 @@ public: * * @param id id of account to be selected */ - void setSelected(const QString& id); + void setSelected(const TQString& id); virtual KMyMoneySelector* selector(void) const { return m_selector; } public slots: - void slotMakeCompletion(const QString& txt); + void slotMakeCompletion(const TQString& txt); - void slotItemSelected(QListViewItem *item, const QPoint& pos, int col); + void slotItemSelected(TQListViewItem *item, const TQPoint& pos, int col); protected: /** * Reimplemented from kMyMoneyAccountSelector to get events from the viewport (to hide * this widget on mouse-click, Escape-presses, etc. */ - virtual bool eventFilter( QObject *, QEvent * ); + virtual bool eventFilter( TQObject *, TQEvent * ); /** * This method resizes the widget to show a maximum of @p count @@ -100,20 +101,20 @@ protected: */ void adjustSize(void); - void connectSignals(QWidget *widget, KListView* lv); + void connectSignals(TQWidget *widget, KListView* lv); void show(bool presetSelected); signals: - void itemSelected(const QString& id); + void itemSelected(const TQString& id); protected: - QWidget* m_parent; - QWidget* m_widget; - QString m_id; + TQWidget* m_parent; + TQWidget* m_widget; + TQString m_id; KListView* m_lv; KMyMoneySelector* m_selector; - QRegExp m_lastCompletion; + TQRegExp m_lastCompletion; static const int MAX_ITEMS; -- cgit v1.2.1