diff options
Diffstat (limited to 'kmymoney2/converter/mymoneyqifprofile.cpp')
-rw-r--r-- | kmymoney2/converter/mymoneyqifprofile.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/converter/mymoneyqifprofile.cpp b/kmymoney2/converter/mymoneyqifprofile.cpp index d9ddd60..f9854f9 100644 --- a/kmymoney2/converter/mymoneyqifprofile.cpp +++ b/kmymoney2/converter/mymoneyqifprofile.cpp @@ -119,7 +119,7 @@ void MyMoneyQifProfile::Private::getThirdPosition(void) int missingIndex = -1; int value = 0; for(int i = 0; i < 3; ++i) { - if(!partsPresent.tqcontains(partsAvail[i][0])) { + if(!partsPresent.contains(partsAvail[i][0])) { missingIndex = i; } else { value += m_partPos[partsAvail[i][0]]; @@ -781,7 +781,7 @@ void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const TQStringList parts = TQStringList::split(",", *it_d); int i; for(i = 0; i < 3; ++i) { - if(d->m_partPos.tqcontains(parts[i][0])) { + if(d->m_partPos.contains(parts[i][0])) { if(d->m_partPos[parts[i][0]] != i) break; } @@ -795,10 +795,10 @@ void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const // matches all tests if(i == 3) { TQString format = *it_d; - format.tqreplace('y', "%y"); - format.tqreplace('m', "%m"); - format.tqreplace('d', "%d"); - format.tqreplace(',', " "); + format.replace('y', "%y"); + format.replace('m', "%m"); + format.replace('d', "%d"); + format.replace(',', " "); list << format; } } @@ -807,10 +807,10 @@ void MyMoneyQifProfile::possibleDateFormats(TQStringList& list) const if(list.count() == 0) { for(it_d = defaultList.begin(); it_d != defaultList.end(); ++it_d) { TQString format = *it_d; - format.tqreplace('y', "%y"); - format.tqreplace('m', "%m"); - format.tqreplace('d', "%d"); - format.tqreplace(',', " "); + format.replace('y', "%y"); + format.replace('m', "%m"); + format.replace('d', "%d"); + format.replace(',', " "); list << format; } } @@ -863,7 +863,7 @@ void MyMoneyQifProfile::autoDetect(const TQStringList& lines) } break; case 2: - if(numericRecords.tqcontains(c)) { + if(numericRecords.contains(c)) { scanNumeric((*it).mid(1), m_decimal[c], m_thousands[c]); } else if((c == 'D') && (m_dateFormat.isEmpty())) { if(d->m_partPos.count() != 3) { @@ -893,7 +893,7 @@ void MyMoneyQifProfile::autoDetect(const TQStringList& lines) if(d->m_partPos.count() != 3 && datesScanned > 20) { TQMap<int, int> sortedPos; // make sure to reset the known parts for the following algorithm - if(d->m_partPos.tqcontains('y')) { + if(d->m_partPos.contains('y')) { d->m_changeCount[d->m_partPos['y']] = -1; for(int i = 0; i < 3; ++i) { if(d->m_partPos['y'] == i) @@ -904,9 +904,9 @@ void MyMoneyQifProfile::autoDetect(const TQStringList& lines) } } } - if(d->m_partPos.tqcontains('d')) + if(d->m_partPos.contains('d')) d->m_changeCount[d->m_partPos['d']] = -1; - if(d->m_partPos.tqcontains('m')) + if(d->m_partPos.contains('m')) d->m_changeCount[d->m_partPos['m']] = -1; for(int i = 0; i < 3; ++i) { @@ -1003,7 +1003,7 @@ void MyMoneyQifProfile::scanDate(const TQString& txt) const } // and if it's in between 12 and 32 and we already identified the // position for the year it must be days - if((value > 12) && (value < 32) && d->m_partPos.tqcontains('y')) { + if((value > 12) && (value < 32) && d->m_partPos.contains('y')) { d->m_partPos['d'] = i; } } |