diff options
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r-- | kmymoney2/converter/mymoneyqifreader.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp index fde43a4..031ecd5 100644 --- a/kmymoney2/converter/mymoneyqifreader.cpp +++ b/kmymoney2/converter/mymoneyqifreader.cpp @@ -870,13 +870,13 @@ void MyMoneyQifReader::processCategoryEntry(void) account.setName(extractLine('N')); account.setDescription(extractLine('D')); - MyMoneyAccount tqparentAccount; + MyMoneyAccount parentAccount; if(!extractLine('I').isEmpty()) { account.setAccountType(MyMoneyAccount::Income); - tqparentAccount = file->income(); + parentAccount = file->income(); } else if(!extractLine('E').isEmpty()) { account.setAccountType(MyMoneyAccount::Expense); - tqparentAccount = file->expense(); + parentAccount = file->expense(); } // check if we can find the account already in the file @@ -886,7 +886,7 @@ void MyMoneyQifReader::processCategoryEntry(void) if(acc.id().isEmpty()) { MyMoneyAccount brokerage; MyMoneyMoney balance; - kmymoney2->createAccount(account, tqparentAccount, brokerage, balance); + kmymoney2->createAccount(account, parentAccount, brokerage, balance); } } @@ -1962,13 +1962,13 @@ TQString MyMoneyQifReader::checkCategory(const TQString& name, const MyMoneyMone // if we did not find the category, we create it if(!found) { MyMoneyAccount tqparent; - if(account.tqparentAccountId().isEmpty()) { + if(account.parentAccountId().isEmpty()) { if(!value.isNegative() && value2.isNegative()) tqparent = file->income(); else tqparent = file->expense(); } else { - tqparent = file->account(account.tqparentAccountId()); + tqparent = file->account(account.parentAccountId()); } account.setAccountType((!value.isNegative() && value2.isNegative()) ? MyMoneyAccount::Income : MyMoneyAccount::Expense); MyMoneyAccount brokerage; @@ -2036,7 +2036,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId) if(account.accountType() == MyMoneyAccount::UnknownAccountType) account.setAccountType(MyMoneyAccount::Checkings); - MyMoneyAccount tqparentAccount; + MyMoneyAccount parentAccount; MyMoneyAccount brokerage; MyMoneyMoney balance; // in case it's a stock account, we need to setup a fix investment account @@ -2044,22 +2044,22 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId) acc.setName(i18n("%1 (Investment)").tqarg(account.name())); // use the same name for the investment account acc.setDescription(i18n("Autogenerated by TQIF importer from type Mutual account entry")); acc.setAccountType(MyMoneyAccount::Investment); - tqparentAccount = file->asset(); - kmymoney2->createAccount(acc, tqparentAccount, brokerage, MyMoneyMoney()); - tqparentAccount = acc; + parentAccount = file->asset(); + kmymoney2->createAccount(acc, parentAccount, brokerage, MyMoneyMoney()); + parentAccount = acc; qDebug("We still need to create the stock account in MyMoneyQifReader::processAccountEntry()"); } else { // setup tqparent according the type of the account switch(account.accountGroup()) { case MyMoneyAccount::Asset: default: - tqparentAccount = file->asset(); + parentAccount = file->asset(); break; case MyMoneyAccount::Liability: - tqparentAccount = file->liability(); + parentAccount = file->liability(); break; case MyMoneyAccount::Equity: - tqparentAccount = file->equity(); + parentAccount = file->equity(); break; } } @@ -2071,7 +2071,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId) brokerage.setAccountType(MyMoneyAccount::Checkings); brokerage.setCurrencyId(MyMoneyFile::instance()->baseCurrency().id()); } - kmymoney2->createAccount(account, tqparentAccount, brokerage, balance); + kmymoney2->createAccount(account, parentAccount, brokerage, balance); acc = account; // qDebug("Account created"); } else { |