summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/mymoneyqifreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r--kmymoney2/converter/mymoneyqifreader.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp
index 031ecd5..74513c7 100644
--- a/kmymoney2/converter/mymoneyqifreader.cpp
+++ b/kmymoney2/converter/mymoneyqifreader.cpp
@@ -121,7 +121,7 @@ class MyMoneyQifReader::Private {
void MyMoneyQifReader::Private::fixMultiLineMemo(TQString& memo) const
{
- memo.tqreplace("\\n", "\n");
+ memo.replace("\\n", "\n");
}
void MyMoneyQifReader::Private::finishStatement(void)
@@ -551,22 +551,22 @@ void MyMoneyQifReader::processQifSpecial(const TQString& _line)
line = line.mid(5);
// exportable accounts
- if(line.lower() == "ccard" || KMyMoneyGlobalSettings::qifCreditCard().lower().tqcontains(line.lower())) {
+ if(line.lower() == "ccard" || KMyMoneyGlobalSettings::qifCreditCard().lower().contains(line.lower())) {
d->accountType = MyMoneyAccount::CreditCard;
d->firstTransaction = true;
d->transactionType = m_entryType = EntryTransaction;
- } else if(line.lower() == "bank" || KMyMoneyGlobalSettings::qifBank().lower().tqcontains(line.lower())) {
+ } else if(line.lower() == "bank" || KMyMoneyGlobalSettings::qifBank().lower().contains(line.lower())) {
d->accountType = MyMoneyAccount::Checkings;
d->firstTransaction = true;
d->transactionType = m_entryType = EntryTransaction;
- } else if(line.lower() == "cash" || KMyMoneyGlobalSettings::qifCash().lower().tqcontains(line.lower())) {
+ } else if(line.lower() == "cash" || KMyMoneyGlobalSettings::qifCash().lower().contains(line.lower())) {
d->accountType = MyMoneyAccount::Cash;
d->firstTransaction = true;
d->transactionType = m_entryType = EntryTransaction;
- } else if(line.lower() == "oth a" || KMyMoneyGlobalSettings::qifAsset().lower().tqcontains(line.lower())) {
+ } else if(line.lower() == "oth a" || KMyMoneyGlobalSettings::qifAsset().lower().contains(line.lower())) {
d->accountType = MyMoneyAccount::Asset;
d->firstTransaction = true;
d->transactionType = m_entryType = EntryTransaction;
@@ -579,7 +579,7 @@ void MyMoneyQifReader::processQifSpecial(const TQString& _line)
} else if(line.lower() == "invst" || line.lower() == i18n("TQIF tag for investment account", "Invst").lower()) {
d->transactionType = m_entryType = EntryInvestmentTransaction;
- } else if(line.lower() == "invoice" || KMyMoneyGlobalSettings::qifInvoice().lower().tqcontains(line.lower())) {
+ } else if(line.lower() == "invoice" || KMyMoneyGlobalSettings::qifInvoice().lower().contains(line.lower())) {
m_entryType = EntrySkip;
} else if(line.lower() == "tax") {
@@ -1019,7 +1019,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
for(;;) {
hash = TQString("%1-%2").tqarg(hashBase).tqarg(idx);
TQMap<TQString, bool>::const_iterator it;
- it = d->m_hashMap.tqfind(hash);
+ it = d->m_hashMap.find(hash);
if(it == d->m_hashMap.end()) {
d->m_hashMap[hash] = true;
break;
@@ -1030,7 +1030,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
if(d->firstTransaction) {
// check if this is an opening balance transaction and process it out of the statement
- if(!payee.isEmpty() && ((payee.lower() == "opening balance") || KMyMoneyGlobalSettings::qifOpeningBalance().lower().tqcontains(payee.lower()))) {
+ if(!payee.isEmpty() && ((payee.lower() == "opening balance") || KMyMoneyGlobalSettings::qifOpeningBalance().lower().contains(payee.lower()))) {
createOpeningBalance();
d->firstTransaction = false;
return;
@@ -1068,7 +1068,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
}
tmp = extractLine('L');
- pos = tmp.tqfindRev("--");
+ pos = tmp.findRev("--");
if(tmp.left(1) == m_qifProfile.accountDelimiter().left(1)) {
// it's a transfer, so we wipe the memo
// tmp = ""; why??
@@ -1092,7 +1092,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
// Collect data for the account's split
s1.m_accountId = m_account.id();
tmp = extractLine('S');
- pos = tmp.tqfindRev("--");
+ pos = tmp.findRev("--");
if(pos != -1) {
tmp = tmp.left(pos);
}
@@ -1140,7 +1140,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
accountId = transferAccount(tmp, false);
} else {
-/* pos = tmp.tqfindRev("--");
+/* pos = tmp.findRev("--");
if(pos != -1) {
t.setValue("Dialog", tmp.mid(pos+2));
tmp = tmp.left(pos);
@@ -1200,7 +1200,7 @@ void MyMoneyQifReader::processTransactionEntry(void)
accountId = transferAccount(tmp, false);
} else {
- pos = tmp.tqfindRev("--");
+ pos = tmp.findRev("--");
if(pos != -1) {
/// t.setValue("Dialog", tmp.mid(pos+2));
tmp = tmp.left(pos);
@@ -1329,7 +1329,7 @@ void MyMoneyQifReader::processInvestmentTransactionEntry(void)
for(;;) {
hash = TQString("%1-%2").tqarg(hashBase).tqarg(idx);
TQMap<TQString, bool>::const_iterator it;
- it = d->m_hashMap.tqfind(hash);
+ it = d->m_hashMap.find(hash);
if(it == d->m_hashMap.end()) {
d->m_hashMap[hash] = true;
break;
@@ -1543,7 +1543,7 @@ void MyMoneyQifReader::processInvestmentTransactionEntry(void)
else if (action == "xin" || action == "xout")
{
TQString payee = extractLine('P');
- if(!payee.isEmpty() && ((payee.lower() == "opening balance") || KMyMoneyGlobalSettings::qifOpeningBalance().lower().tqcontains(payee.lower()))) {
+ if(!payee.isEmpty() && ((payee.lower() == "opening balance") || KMyMoneyGlobalSettings::qifOpeningBalance().lower().contains(payee.lower()))) {
createOpeningBalance(MyMoneyAccount::Investment);
return;
}
@@ -2123,7 +2123,7 @@ void MyMoneyQifReader::selectOrCreateAccount(const SelectCreateMode mode, MyMone
if(!msg.isEmpty())
accountSelect.setCaption(msg);
- it = m_accountTranslation.tqfind((leadIn + MyMoneyFile::AccountSeperator + account.name()).lower());
+ it = m_accountTranslation.find((leadIn + MyMoneyFile::AccountSeperator + account.name()).lower());
if(it != m_accountTranslation.end()) {
try {
account = file->account(*it);