diff options
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r-- | kmymoney2/converter/mymoneyqifreader.cpp | 26 |
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: |