diff options
author | Michele Calgaro <[email protected]> | 2023-11-05 11:54:03 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-05 21:02:02 +0900 |
commit | 96c67c9b3924ab034d3d34aa03d3ea7cf0746587 (patch) | |
tree | 7023c36a5f1592f5b11733ab574176f3970c0eb8 /kmymoney2/converter | |
parent | ecdc0343d446e810e477e8924e846de7f3313c55 (diff) | |
download | kmymoney-96c67c9b3924ab034d3d34aa03d3ea7cf0746587.tar.gz kmymoney-96c67c9b3924ab034d3d34aa03d3ea7cf0746587.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kmymoney2/converter')
-rw-r--r-- | kmymoney2/converter/mymoneygncreader.cpp | 6 | ||||
-rw-r--r-- | kmymoney2/converter/mymoneygncreader.h | 2 | ||||
-rw-r--r-- | kmymoney2/converter/mymoneyqifreader.cpp | 4 | ||||
-rw-r--r-- | kmymoney2/converter/mymoneystatementreader.cpp | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/converter/mymoneygncreader.cpp b/kmymoney2/converter/mymoneygncreader.cpp index 9377def..557bc8e 100644 --- a/kmymoney2/converter/mymoneygncreader.cpp +++ b/kmymoney2/converter/mymoneygncreader.cpp @@ -1429,7 +1429,7 @@ void MyMoneyGncReader::convertSplit (const GncSplit *gsp) { MyMoneyMoney splitValue (convBadValue (gsp->value())); if (gsp->value() == "-1/0") { // treat gnc invalid value as zero // it's not quite a consistency check, but easier to treat it as such - postMessage ("CC", 4, splitAccount.name().latin1(), TQString(m_txDatePosted.toString(Qt::ISODate)).latin1()); + postMessage ("CC", 4, splitAccount.name().latin1(), TQString(m_txDatePosted.toString(TQt::ISODate)).latin1()); } MyMoneyMoney splitQuantity(convBadValue(gsp->qty())); split.setValue (splitValue); @@ -1470,7 +1470,7 @@ void MyMoneyGncReader::convertSplit (const GncSplit *gsp) { e.setTradingCurrency (m_txCommodity); if (gncdebug) tqDebug(TQString("added price for %1, %2 date %3"). arg(e.name()).arg(newPrice.toString()). - arg(m_txDatePosted.toString(Qt::ISODate))); + arg(m_txDatePosted.toString(TQt::ISODate))); m_storage->modifySecurity(e); MyMoneyPrice dealPrice (e.id(), m_txCommodity, m_txDatePosted, newPrice, i18n("Imported Transaction")); m_storage->addPrice (dealPrice); @@ -1788,7 +1788,7 @@ void MyMoneyGncReader::convertSchedule (const GncSchedule *gsc) { } else { const GncRecurrence *gre = gsc->m_vpRecurrence.first(); //tqDebug (TQString("Sched %1, pt %2, mu %3, sd %4").arg(gsc->name()).arg(gre->periodType()) - // .arg(gre->mult()).arg(gre->startDate().toString(Qt::ISODate))); + // .arg(gre->mult()).arg(gre->startDate().toString(TQt::ISODate))); frequency = gre->getFrequency(); schedEnabled = gsc->enabled(); } diff --git a/kmymoney2/converter/mymoneygncreader.h b/kmymoney2/converter/mymoneygncreader.h index 27cd06d..93dea53 100644 --- a/kmymoney2/converter/mymoneygncreader.h +++ b/kmymoney2/converter/mymoneygncreader.h @@ -305,7 +305,7 @@ protected: friend class GncSplit; friend class GncSchedule; friend class GncRecurrence; - const TQDate date() const { return (TQDate::fromString(m_v.at(TSDATE)->section(' ', 0, 0), Qt::ISODate));}; + const TQDate date() const { return (TQDate::fromString(m_v.at(TSDATE)->section(' ', 0, 0), TQt::ISODate));}; private: // data elements enum DateDataEls {TSDATE, GDATE, END_Date_DELS}; diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp index 614788f..372e34a 100644 --- a/kmymoney2/converter/mymoneyqifreader.cpp +++ b/kmymoney2/converter/mymoneyqifreader.cpp @@ -1017,7 +1017,7 @@ void MyMoneyQifReader::processTransactionEntry(void) h = MyMoneyTransaction::hash(m_qifEntry.join(";")); TQString hashBase; - hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).latin1(), h); + hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(TQt::ISODate).latin1(), h); int idx = 1; TQString hash; for(;;) { @@ -1327,7 +1327,7 @@ void MyMoneyQifReader::processInvestmentTransactionEntry(void) h = MyMoneyTransaction::hash(m_qifEntry.join(";")); TQString hashBase; - hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(Qt::ISODate).latin1(), h); + hashBase.sprintf("%s-%07lx", m_qifProfile.date(extractLine('D')).toString(TQt::ISODate).latin1(), h); int idx = 1; TQString hash; for(;;) { diff --git a/kmymoney2/converter/mymoneystatementreader.cpp b/kmymoney2/converter/mymoneystatementreader.cpp index 15f29f8..effe09a 100644 --- a/kmymoney2/converter/mymoneystatementreader.cpp +++ b/kmymoney2/converter/mymoneystatementreader.cpp @@ -277,11 +277,11 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes // see if we need to update some values stored with the account if(m_account.value("lastStatementBalance") != s.m_closingBalance.toString() - || m_account.value("lastImportedTransactionDate") != s.m_dateEnd.toString(Qt::ISODate)) { + || m_account.value("lastImportedTransactionDate") != s.m_dateEnd.toString(TQt::ISODate)) { if(s.m_closingBalance != MyMoneyMoney::autoCalc) { m_account.setValue("lastStatementBalance", s.m_closingBalance.toString()); if ( s.m_dateEnd.isValid() ) { - m_account.setValue("lastImportedTransactionDate", s.m_dateEnd.toString(Qt::ISODate)); + m_account.setValue("lastImportedTransactionDate", s.m_dateEnd.toString(TQt::ISODate)); } } @@ -393,7 +393,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes if(s.m_closingBalance.isAutoCalc()) { messages += i18n(" Statement balance is not contained in statement."); } else { - messages += i18n(" Statement balance on %1 is reported to be %2").arg(s.m_dateEnd.toString(Qt::ISODate)).arg(s.m_closingBalance.formatMoney("",2)); + messages += i18n(" Statement balance on %1 is reported to be %2").arg(s.m_dateEnd.toString(TQt::ISODate)).arg(s.m_closingBalance.formatMoney("",2)); } messages += i18n(" Transactions"); messages += i18n(" %1 processed").arg(d->transactionsCount); @@ -504,7 +504,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra #if 0 TQString dbgMsg; - dbgMsg = TQString("Process %1, '%3', %2").arg(t_in.m_datePosted.toString(Qt::ISODate)).arg(t_in.m_amount.formatMoney("", 2)).arg(t_in.m_strBankID); + dbgMsg = TQString("Process %1, '%3', %2").arg(t_in.m_datePosted.toString(TQt::ISODate)).arg(t_in.m_amount.formatMoney("", 2)).arg(t_in.m_strBankID); tqDebug(dbgMsg); #endif |