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/kmymoneycompletion.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/kmymoneycompletion.h')
-rw-r--r-- | kmymoney2/widgets/kmymoneycompletion.h | 33 |
1 files changed, 17 insertions, 16 deletions
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 <qwidget.h> -#include <qvbox.h> -#include <qregexp.h> -class QListViewItem; +#include <tqwidget.h> +#include <tqvbox.h> +#include <tqregexp.h> +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; |