summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyaccountcombo.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-05 06:00:29 +0000
commitfecb0e67b23e8b83ba7fc881bb57bc48c0852d62 (patch)
tree6b8614802f0d01b353bc9ba78aff2090846c198e /kmymoney2/widgets/kmymoneyaccountcombo.h
parentdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (diff)
downloadkmymoney-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/kmymoneyaccountcombo.h')
-rw-r--r--kmymoney2/widgets/kmymoneyaccountcombo.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/kmymoney2/widgets/kmymoneyaccountcombo.h b/kmymoney2/widgets/kmymoneyaccountcombo.h
index 770d5ad..623260d 100644
--- a/kmymoney2/widgets/kmymoneyaccountcombo.h
+++ b/kmymoney2/widgets/kmymoneyaccountcombo.h
@@ -44,8 +44,9 @@ class kMyMoneyAccountCompletion;
class KMyMoneyAccountCombo : public KComboBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- KMyMoneyAccountCombo( QWidget* parent = 0, const char* name = 0 );
+ KMyMoneyAccountCombo( TQWidget* tqparent = 0, const char* name = 0 );
~KMyMoneyAccountCombo();
/**
@@ -56,23 +57,23 @@ public:
/**
* This method loads the set of accounts into the widget
* as defined by the parameter @p accountIdList. @p accountIdList is
- * a QValueList of account ids.
+ * a TQValueList of account ids.
*
- * @param baseName QString which should be used as group text
- * @param accountIdList QValueList of QString account ids
+ * @param baseName TQString which should be used as group text
+ * @param accountIdList TQValueList of TQString account ids
* which should be loaded into the widget
* @param clear if true (default) clears the widget before populating
* @return This method returns the number of accounts loaded into the list
*/
- int loadList(const QString& baseName, const QValueList<QString>& accountIdList, const bool clear = true);
+ int loadList(const TQString& baseName, const TQValueList<TQString>& accountIdList, const bool clear = true);
- QStringList accountList(const QValueList<MyMoneyAccount::accountTypeE>& list = QValueList<MyMoneyAccount::accountTypeE>()) const;
+ TQStringList accountList(const TQValueList<MyMoneyAccount::accountTypeE>& list = TQValueList<MyMoneyAccount::accountTypeE>()) const;
int loadList(KMyMoneyUtils::categoryTypeE typeMask);
- int loadList(const QValueList<int>& list);
+ int loadList(const TQValueList<int>& list);
int loadList(MyMoneyAccount::accountTypeE type);
- void setSelected(const QString& id);
+ void setSelected(const TQString& id);
void setSelected(const MyMoneyAccount& acc);
/**
@@ -81,28 +82,28 @@ public:
*
* @return list of selected accounts
*/
- QStringList selectedAccounts(void) const;
+ TQStringList selectedAccounts(void) const;
- virtual void keyPressEvent(QKeyEvent* e);
+ virtual void keyPressEvent(TQKeyEvent* e);
public slots:
void slotButtonPressed(void);
- void slotSelected(const QString&);
+ void slotSelected(const TQString&);
protected slots:
signals:
- void accountSelected(const QString&);
+ void accountSelected(const TQString&);
void pressed();
void released();
void clicked();
protected:
- void mousePressEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
- void setText(const QString& txt);
+ void setText(const TQString& txt);
private:
kMyMoneyAccountCompletion* m_completion;