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/dialogs/investtransactioneditor.h | 35 +++++++++++++++-------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'kmymoney2/dialogs/investtransactioneditor.h') 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& feeSplits, QValueList& interestSplits, MyMoneySecurity& security, MyMoneySecurity& currency, MyMoneySplit::investTransactionTypeE& transactionType); + static void dissectTransaction(const MyMoneyTransaction& transaction, const MyMoneySplit& split, MyMoneySplit& assetAccountSplit, TQValueList& feeSplits, TQValueList& 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& splits) const; + MyMoneyMoney subtotal(const TQValueList& 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& splits); + bool createPseudoTransaction(MyMoneyTransaction& t, const TQValueList& 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& splits, bool isIncome, const char* slotEditSplits); + int editSplits(const TQString& categoryWidgetName, const TQString& amountWidgetName, TQValueList& splits, bool isIncome, const char* slotEditSplits); void updatePriceMode(const MyMoneySplit& split = MyMoneySplit()); @@ -159,8 +160,8 @@ protected: private: MyMoneySplit m_assetAccountSplit; - QValueList m_interestSplits; - QValueList m_feeSplits; + TQValueList m_interestSplits; + TQValueList m_feeSplits; MyMoneySecurity m_security; MyMoneySecurity m_currency; MyMoneySplit::investTransactionTypeE m_transactionType; -- cgit v1.2.1