summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/mymoneyqifreader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit902ba103f2215bcefa22d62b1c9138aa4b88891c (patch)
tree63ef88424b9be33a31e5a8de61343fb8d7633937 /kmymoney2/converter/mymoneyqifreader.cpp
parent7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (diff)
downloadkmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.tar.gz
kmymoney-902ba103f2215bcefa22d62b1c9138aa4b88891c.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r--kmymoney2/converter/mymoneyqifreader.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp
index 74513c7..809d71c 100644
--- a/kmymoney2/converter/mymoneyqifreader.cpp
+++ b/kmymoney2/converter/mymoneyqifreader.cpp
@@ -1929,7 +1929,7 @@ TQString MyMoneyQifReader::checkCategory(const TQString& name, const MyMoneyMone
if(!name.isEmpty()) {
// The category might be constructed with an arbitraty depth (number of
- // colon delimited fields). We try to find a tqparent account within this
+ // colon delimited fields). We try to find a parent account within this
// hierarchy by searching the following sequence:
//
// aaaa:bbbb:cccc:ddddd
@@ -1942,39 +1942,39 @@ TQString MyMoneyQifReader::checkCategory(const TQString& name, const MyMoneyMone
account.setName(name);
TQString accName; // part to be created (right side in above list)
- TQString tqparent(name); // a possible tqparent part (left side in above list)
+ TQString parent(name); // a possible parent part (left side in above list)
do {
- accountId = file->categoryToAccount(tqparent);
+ accountId = file->categoryToAccount(parent);
if(accountId.isEmpty()) {
found = false;
// prepare next step
if(!accName.isEmpty())
accName.prepend(':');
- accName.prepend(tqparent.section(':', -1));
+ accName.prepend(parent.section(':', -1));
account.setName(accName);
- tqparent = tqparent.section(':', 0, -2);
+ parent = parent.section(':', 0, -2);
} else if(!accName.isEmpty()) {
account.setParentAccountId(accountId);
}
}
- while(!tqparent.isEmpty() && accountId.isEmpty());
+ while(!parent.isEmpty() && accountId.isEmpty());
// if we did not find the category, we create it
if(!found) {
- MyMoneyAccount tqparent;
+ MyMoneyAccount parent;
if(account.parentAccountId().isEmpty()) {
if(!value.isNegative() && value2.isNegative())
- tqparent = file->income();
+ parent = file->income();
else
- tqparent = file->expense();
+ parent = file->expense();
} else {
- tqparent = file->account(account.parentAccountId());
+ parent = file->account(account.parentAccountId());
}
account.setAccountType((!value.isNegative() && value2.isNegative()) ? MyMoneyAccount::Income : MyMoneyAccount::Expense);
MyMoneyAccount brokerage;
- // clear out the tqparent id, because createAccount() does not like that
+ // clear out the parent id, because createAccount() does not like that
account.setParentAccountId(TQString());
- kmymoney2->createAccount(account, tqparent, brokerage, MyMoneyMoney());
+ kmymoney2->createAccount(account, parent, brokerage, MyMoneyMoney());
accountId = account.id();
}
}
@@ -2049,7 +2049,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId)
parentAccount = acc;
qDebug("We still need to create the stock account in MyMoneyQifReader::processAccountEntry()");
} else {
- // setup tqparent according the type of the account
+ // setup parent according the type of the account
switch(account.accountGroup()) {
case MyMoneyAccount::Asset:
default: