summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/investtransactioneditor.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/dialogs/investtransactioneditor.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/dialogs/investtransactioneditor.h')
-rw-r--r--kmymoney2/dialogs/investtransactioneditor.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/kmymoney2/dialogs/investtransactioneditor.h b/kmymoney2/dialogs/investtransactioneditor.h
index 4d56697..c943dc3 100644
--- a/kmymoney2/dialogs/investtransactioneditor.h
+++ b/kmymoney2/dialogs/investtransactioneditor.h
@@ -35,6 +35,7 @@ class InvestTransactionEditor : public TransactionEditor
friend class InvestTransactionEditorPrivate;
Q_OBJECT
+ TQ_OBJECT
public:
typedef enum {
PricePerShare = 1,
@@ -42,7 +43,7 @@ public:
} priceModeE;
InvestTransactionEditor();
- InvestTransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::InvestTransaction* item, const KMyMoneyRegister::SelectedTransactions& list, const QDate& lastPostDate);
+ InvestTransactionEditor(TransactionEditorContainer* regForm, KMyMoneyRegister::InvestTransaction* item, const KMyMoneyRegister::SelectedTransactions& list, const TQDate& lastPostDate);
virtual ~InvestTransactionEditor();
/**
@@ -60,15 +61,15 @@ public:
*
* @sa transactionDataSufficient()
*/
- virtual bool isComplete(QString& reason) const;
+ virtual bool isComplete(TQString& reason) const;
- virtual QWidget* firstWidget(void) const;
+ virtual TQWidget* firstWidget(void) const;
virtual bool fixTransactionCommodity(const MyMoneyAccount& /* account */) { return true; }
void totalAmount(MyMoneyMoney& amount) const;
- static void dissectTransaction(const MyMoneyTransaction& transaction, const MyMoneySplit& split, MyMoneySplit& assetAccountSplit, QValueList<MyMoneySplit>& feeSplits, QValueList<MyMoneySplit>& interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency, MyMoneySplit::investTransactionTypeE& transactionType);
+ static void dissectTransaction(const MyMoneyTransaction& transaction, const MyMoneySplit& split, MyMoneySplit& assetAccountSplit, TQValueList<MyMoneySplit>& feeSplits, TQValueList<MyMoneySplit>& interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency, MyMoneySplit::investTransactionTypeE& transactionType);
bool setupPrice(const MyMoneyTransaction& t, MyMoneySplit& split);
@@ -98,20 +99,20 @@ public:
const MyMoneySecurity& security(void) const { return m_security; }
protected slots:
- void slotCreateSecurity(const QString& name, QString& id);
- void slotCreateFeeCategory(const QString& name, QString& id);
- void slotCreateInterestCategory(const QString& name, QString& id);
+ void slotCreateSecurity(const TQString& name, TQString& id);
+ void slotCreateFeeCategory(const TQString& name, TQString& id);
+ void slotCreateInterestCategory(const TQString& name, TQString& id);
int slotEditInterestSplits(void);
int slotEditFeeSplits(void);
void slotReloadEditWidgets(void);
void slotUpdateActivity(MyMoneySplit::investTransactionTypeE);
- void slotUpdateSecurity(const QString& stockId);
- void slotUpdateInterestCategory(const QString& id);
- void slotUpdateInterestVisibility(const QString&);
- void slotUpdateFeeCategory(const QString& id);
- void slotUpdateFeeVisibility(const QString&);
+ void slotUpdateSecurity(const TQString& stockId);
+ void slotUpdateInterestCategory(const TQString& id);
+ void slotUpdateInterestVisibility(const TQString&);
+ void slotUpdateFeeCategory(const TQString& id);
+ void slotUpdateFeeVisibility(const TQString&);
void slotUpdateTotalAmount(void);
protected:
@@ -132,13 +133,13 @@ protected:
void activityFactory(MyMoneySplit::investTransactionTypeE type);
- MyMoneyMoney subtotal(const QValueList<MyMoneySplit>& splits) const;
+ MyMoneyMoney subtotal(const TQValueList<MyMoneySplit>& splits) const;
/**
* This method creates a transaction to be used for the split fee/interest editor.
* It has a reference to a phony account and the splits contained in @a splits .
*/
- bool createPseudoTransaction(MyMoneyTransaction& t, const QValueList<MyMoneySplit>& splits);
+ bool createPseudoTransaction(MyMoneyTransaction& t, const TQValueList<MyMoneySplit>& splits);
/**
* Convenience method used by slotEditInterestSplits() and slotEditFeeSplits().
@@ -151,7 +152,7 @@ protected:
* category widget named @p categoryWidgetName in case of multiple splits
* in @p splits .
*/
- int editSplits(const QString& categoryWidgetName, const QString& amountWidgetName, QValueList<MyMoneySplit>& splits, bool isIncome, const char* slotEditSplits);
+ int editSplits(const TQString& categoryWidgetName, const TQString& amountWidgetName, TQValueList<MyMoneySplit>& splits, bool isIncome, const char* slotEditSplits);
void updatePriceMode(const MyMoneySplit& split = MyMoneySplit());
@@ -159,8 +160,8 @@ protected:
private:
MyMoneySplit m_assetAccountSplit;
- QValueList<MyMoneySplit> m_interestSplits;
- QValueList<MyMoneySplit> m_feeSplits;
+ TQValueList<MyMoneySplit> m_interestSplits;
+ TQValueList<MyMoneySplit> m_feeSplits;
MyMoneySecurity m_security;
MyMoneySecurity m_currency;
MyMoneySplit::investTransactionTypeE m_transactionType;