summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/transaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/transaction.cpp')
-rw-r--r--kmymoney2/widgets/transaction.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/widgets/transaction.cpp b/kmymoney2/widgets/transaction.cpp
index dc5e5a2..c56e4d1 100644
--- a/kmymoney2/widgets/transaction.cpp
+++ b/kmymoney2/widgets/transaction.cpp
@@ -135,8 +135,8 @@ static unsigned char attentionSign[] = {
0x42,0x60,0x82
};
-Transaction::Transaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- RegisterItem(tqparent),
+Transaction::Transaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ RegisterItem(parent),
m_transaction(transaction),
m_split(split),
m_form(0),
@@ -160,7 +160,7 @@ Transaction::Transaction(Register *tqparent, const MyMoneyTransaction& transacti
if(!m_split.payeeId().isEmpty()) {
m_payee = file->payee(m_split.payeeId()).name();
}
- if(tqparent->account().isIncomeExpense()) {
+ if(parent->account().isIncomeExpense()) {
m_payeeHeader = m_split.shares().isNegative() ? i18n("From") : i18n("Pay to");
} else {
m_payeeHeader = m_split.shares().isNegative() ? i18n("Pay to") : i18n("From");
@@ -839,8 +839,8 @@ void Transaction::setSelected(bool selected)
m_selected = selected;
}
-StdTransaction::StdTransaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- Transaction(tqparent, transaction, split, uniqueId),
+StdTransaction::StdTransaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ Transaction(parent, transaction, split, uniqueId),
m_showAccountRow(false)
{
try {
@@ -889,7 +889,7 @@ StdTransaction::StdTransaction(Register *tqparent, const MyMoneyTransaction& tra
// setup initial size
setNumRowsRegister(numRowsRegister(KMyMoneyGlobalSettings::showRegisterDetailed()));
- emit tqparent->itemAdded(this);
+ emit parent->itemAdded(this);
}
void StdTransaction::setupFormHeader(const TQString& id)
@@ -1376,8 +1376,8 @@ TransactionEditor* StdTransaction::createEditor(TransactionEditorContainer* regF
return new StdTransactionEditor(regForm, this, list, lastPostDate);
}
-InvestTransaction::InvestTransaction(Register *tqparent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
- Transaction(tqparent, transaction, split, uniqueId)
+InvestTransaction::InvestTransaction(Register *parent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId) :
+ Transaction(parent, transaction, split, uniqueId)
{
// dissect the transaction into its type, splits, currency, security etc.
InvestTransactionEditor::dissectTransaction(m_transaction, m_split,
@@ -1429,7 +1429,7 @@ InvestTransaction::InvestTransaction(Register *tqparent, const MyMoneyTransactio
// setup initial size
setNumRowsRegister(numRowsRegister(KMyMoneyGlobalSettings::showRegisterDetailed()));
- emit tqparent->itemAdded(this);
+ emit parent->itemAdded(this);
}
void InvestTransaction::setupForm(TransactionForm* form)