summaryrefslogtreecommitdiffstats
path: root/kmymoney2
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:19:48 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:19:48 -0600
commitaa85254cd16cb870b8d1649ef1dbad09bd8491e8 (patch)
tree850c18efae9bd6bc03f83c16fe4caf8670b67f43 /kmymoney2
parent4aafeadd9f7ae0e603589579d467588c7421a283 (diff)
downloadkmymoney-aa85254cd16cb870b8d1649ef1dbad09bd8491e8.tar.gz
kmymoney-aa85254cd16cb870b8d1649ef1dbad09bd8491e8.zip
Rename additional global TQt functions
Diffstat (limited to 'kmymoney2')
-rw-r--r--kmymoney2/converter/mymoneygncreader.cpp136
-rw-r--r--kmymoney2/converter/mymoneyqifprofile.cpp14
-rw-r--r--kmymoney2/converter/mymoneyqifreader.cpp30
-rw-r--r--kmymoney2/converter/mymoneystatementreader.cpp28
-rw-r--r--kmymoney2/converter/mymoneytemplate.cpp6
-rw-r--r--kmymoney2/converter/webpricequote.cpp2
-rw-r--r--kmymoney2/dialogs/investactivities.cpp4
-rw-r--r--kmymoney2/dialogs/investtransactioneditor.cpp2
-rw-r--r--kmymoney2/dialogs/kcurrencycalculator.cpp2
-rw-r--r--kmymoney2/dialogs/kcurrencyeditdlg.cpp6
-rw-r--r--kmymoney2/dialogs/keditloanwizard.cpp4
-rw-r--r--kmymoney2/dialogs/keditscheduledlg.cpp10
-rw-r--r--kmymoney2/dialogs/kendingbalancedlg.cpp4
-rw-r--r--kmymoney2/dialogs/kenterscheduledlg.cpp8
-rw-r--r--kmymoney2/dialogs/kequitypriceupdatedlg.cpp2
-rw-r--r--kmymoney2/dialogs/kexportdlg.cpp2
-rw-r--r--kmymoney2/dialogs/kmymoneypricedlg.cpp2
-rw-r--r--kmymoney2/dialogs/kmymoneysplittable.cpp8
-rw-r--r--kmymoney2/dialogs/knewaccountdlg.cpp18
-rw-r--r--kmymoney2/dialogs/knewloanwizard.cpp6
-rw-r--r--kmymoney2/dialogs/kreconciledlg.cpp2
-rw-r--r--kmymoney2/dialogs/ksplittransactiondlg.cpp2
-rw-r--r--kmymoney2/dialogs/settings/ksettingshome.cpp2
-rw-r--r--kmymoney2/dialogs/transactioneditor.cpp24
-rw-r--r--kmymoney2/kmymoney2.cpp50
-rw-r--r--kmymoney2/kmymoneyutils.cpp8
-rw-r--r--kmymoney2/main.cpp10
-rw-r--r--kmymoney2/mymoney/mymoneyaccount.cpp6
-rw-r--r--kmymoney2/mymoney/mymoneyexception.cpp2
-rw-r--r--kmymoney2/mymoney/mymoneyfile.cpp10
-rw-r--r--kmymoney2/mymoney/mymoneymoney.cpp18
-rw-r--r--kmymoney2/mymoney/mymoneyobjectcontainer.cpp2
-rw-r--r--kmymoney2/mymoney/mymoneyprice.cpp4
-rw-r--r--kmymoney2/mymoney/mymoneyscheduled.cpp6
-rw-r--r--kmymoney2/mymoney/mymoneysubject.cpp2
-rw-r--r--kmymoney2/mymoney/mymoneytransaction.cpp2
-rw-r--r--kmymoney2/mymoney/mymoneytransactionfilter.cpp16
-rw-r--r--kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp16
-rw-r--r--kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp14
-rw-r--r--kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp16
-rw-r--r--kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.cpp2
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragedump.cpp2
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragesql.cpp42
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragesql.h2
-rw-r--r--kmymoney2/mymoney/storage/mymoneystoragexml.cpp26
-rw-r--r--kmymoney2/plugins/interfaces/kmmstatementinterface.cpp2
-rw-r--r--kmymoney2/plugins/kmymoneyplugin.cpp6
-rw-r--r--kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp2
-rw-r--r--kmymoney2/plugins/ofximport/ofximporterplugin.cpp4
-rw-r--r--kmymoney2/reports/objectinfotable.cpp2
-rw-r--r--kmymoney2/reports/pivottable.cpp12
-rw-r--r--kmymoney2/views/kgloballedgerview.cpp18
-rw-r--r--kmymoney2/views/khomeview.cpp22
-rw-r--r--kmymoney2/views/kinvestmentlistitem.cpp4
-rw-r--r--kmymoney2/views/kinvestmentview.cpp6
-rw-r--r--kmymoney2/views/kmymoneyview.cpp32
-rw-r--r--kmymoney2/views/kpayeesview.cpp4
-rwxr-xr-xkmymoney2/views/kreportsview.cpp6
-rw-r--r--kmymoney2/views/kscheduledlistitem.cpp2
-rw-r--r--kmymoney2/views/kscheduledview.cpp2
-rw-r--r--kmymoney2/widgets/kaccounttemplateselector.cpp4
-rw-r--r--kmymoney2/widgets/kguiutils.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneyaccountcombo.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneydateinput.cpp2
-rw-r--r--kmymoney2/widgets/kmymoneypriceview.cpp2
-rw-r--r--kmymoney2/widgets/register.cpp34
-rw-r--r--kmymoney2/widgets/transaction.cpp8
-rw-r--r--kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp4
68 files changed, 381 insertions, 381 deletions
diff --git a/kmymoney2/converter/mymoneygncreader.cpp b/kmymoney2/converter/mymoneygncreader.cpp
index 553362a..0c3981e 100644
--- a/kmymoney2/converter/mymoneygncreader.cpp
+++ b/kmymoney2/converter/mymoneygncreader.cpp
@@ -233,9 +233,9 @@ TQString GncObject::hide (TQString data, unsigned int anonClass) {
// dump current object data values // only called if gncdebug set
void GncObject::debugDump () {
uint i;
- qDebug ("Object %s", m_elementName.latin1());
+ tqDebug ("Object %s", m_elementName.latin1());
for (i = 0; i < m_dataElementListCount; i++) {
- qDebug ("%s = %s", m_dataElementList[i].latin1(), m_v.at(i)->latin1());
+ tqDebug ("%s = %s", m_dataElementList[i].latin1(), m_v.at(i)->latin1());
}
}
//*****************************************************************
@@ -255,7 +255,7 @@ GncFile::~GncFile () {}
GncObject *GncFile::startSubEl() {
TRY
- if (pMain->xmldebug) qDebug ("File start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("File start subel m_state %d", m_state);
GncObject *next = 0;
switch (m_state) {
case BOOK:
@@ -279,7 +279,7 @@ GncObject *GncFile::startSubEl() {
}
void GncFile::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("File end subel");
+ if (pMain->xmldebug) tqDebug ("File end subel");
if (!m_processingTemplates) delete subObj; // template txs must be saved awaiting schedules
m_dataPtr = 0;
return ;
@@ -349,7 +349,7 @@ void GncKvp::dataEl (const TQXmlAttributes& elAttrs) {
}
GncObject *GncKvp::startSubEl() {
- if (pMain->xmldebug) qDebug ("Kvp start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("Kvp start subel m_state %d", m_state);
TRY
GncObject *next = 0;
switch (m_state) {
@@ -361,7 +361,7 @@ GncObject *GncKvp::startSubEl() {
}
void GncKvp::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Kvp end subel");
+ if (pMain->xmldebug) tqDebug ("Kvp end subel");
m_kvpList.append (subObj);
m_dataPtr = 0;
return ;
@@ -406,7 +406,7 @@ void GncCountData::terminate () {
if (i != 0) {
if (m_countType == "budget") pMain->setBudgetsFound(true);
else if (m_countType.left(7) == "gnc:Gnc") pMain->setSmallBusinessFound(true);
- else if (pMain->xmldebug) qDebug ("Unknown count type %s", m_countType.latin1());
+ else if (pMain->xmldebug) tqDebug ("Unknown count type %s", m_countType.latin1());
}
return ;
}
@@ -502,7 +502,7 @@ GncAccount::~GncAccount () {
GncObject *GncAccount::startSubEl() {
TRY
- if (pMain->xmldebug) qDebug ("Account start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("Account start subel m_state %d", m_state);
GncObject *next = 0;
switch (m_state) {
case CMDTY: next = new GncCmdtySpec; break;
@@ -517,7 +517,7 @@ GncObject *GncAccount::startSubEl() {
}
void GncAccount::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Account end subel");
+ if (pMain->xmldebug) tqDebug ("Account end subel");
switch (m_state) {
case CMDTY: m_vpCommodity = static_cast<GncCmdtySpec *>(subObj); break;
case KVP: m_kvpList.append (subObj);
@@ -556,7 +556,7 @@ GncTransaction::~GncTransaction () {
GncObject *GncTransaction::startSubEl() {
TRY
- if (pMain->xmldebug) qDebug ("Transaction start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("Transaction start subel m_state %d", m_state);
GncObject *next = 0;
switch (m_state) {
case CURRCY: next = new GncCmdtySpec; break;
@@ -578,7 +578,7 @@ GncObject *GncTransaction::startSubEl() {
}
void GncTransaction::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Transaction end subel");
+ if (pMain->xmldebug) tqDebug ("Transaction end subel");
switch (m_state) {
case CURRCY: m_vpCurrency = static_cast<GncCmdtySpec *>(subObj); break;
case POSTED: m_vpDatePosted = static_cast<GncDate *>(subObj); break;
@@ -630,7 +630,7 @@ GncObject *GncSplit::startSubEl () {
}
void GncSplit::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Split end subel");
+ if (pMain->xmldebug) tqDebug ("Split end subel");
switch (m_state) {
case RECDATE: m_vpDateReconciled = static_cast<GncDate *>(subObj); break;
}
@@ -654,7 +654,7 @@ GncTemplateSplit::GncTemplateSplit () {
GncTemplateSplit::~GncTemplateSplit () {}
GncObject *GncTemplateSplit::startSubEl() {
- if (pMain->xmldebug) qDebug ("TemplateSplit start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("TemplateSplit start subel m_state %d", m_state);
TRY
GncObject *next = 0;
switch (m_state) {
@@ -666,7 +666,7 @@ GncObject *GncTemplateSplit::startSubEl() {
}
void GncTemplateSplit::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("TemplateSplit end subel");
+ if (pMain->xmldebug) tqDebug ("TemplateSplit end subel");
m_kvpList.append (subObj);
m_dataPtr = 0;
return ;
@@ -697,7 +697,7 @@ GncSchedule::~GncSchedule () {
}
GncObject *GncSchedule::startSubEl() {
- if (pMain->xmldebug) qDebug ("Schedule start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("Schedule start subel m_state %d", m_state);
TRY
GncObject *next = 0;
switch (m_state) {
@@ -714,7 +714,7 @@ GncObject *GncSchedule::startSubEl() {
}
void GncSchedule::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Schedule end subel");
+ if (pMain->xmldebug) tqDebug ("Schedule end subel");
switch (m_state) {
case STARTDATE: m_vpStartDate = static_cast<GncDate *>(subObj); break;
case LASTDATE: m_vpLastDate = static_cast<GncDate *>(subObj); break;
@@ -751,7 +751,7 @@ GncFreqSpec::~GncFreqSpec () {}
GncObject *GncFreqSpec::startSubEl() {
TRY
- if (pMain->xmldebug) qDebug ("FreqSpec start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("FreqSpec start subel m_state %d", m_state);
GncObject *next = 0;
switch (m_state) {
@@ -763,7 +763,7 @@ GncObject *GncFreqSpec::startSubEl() {
}
void GncFreqSpec::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("FreqSpec end subel");
+ if (pMain->xmldebug) tqDebug ("FreqSpec end subel");
switch (m_state) {
case COMPO: m_fsList.append (subObj); break;
}
@@ -794,7 +794,7 @@ GncRecurrence::~GncRecurrence () {
GncObject *GncRecurrence::startSubEl() {
TRY
- if (pMain->xmldebug) qDebug ("Recurrence start subel m_state %d", m_state);
+ if (pMain->xmldebug) tqDebug ("Recurrence start subel m_state %d", m_state);
GncObject *next = 0;
switch (m_state) {
@@ -806,7 +806,7 @@ GncObject *GncRecurrence::startSubEl() {
}
void GncRecurrence::endSubEl(GncObject *subObj) {
- if (pMain->xmldebug) qDebug ("Recurrence end subel");
+ if (pMain->xmldebug) tqDebug ("Recurrence end subel");
switch (m_state) {
case STARTDATE: m_vpStartDate = static_cast<GncDate *>(subObj); break;
}
@@ -884,7 +884,7 @@ bool XmlReader::startDocument() {
bool XmlReader::startElement (const TQString&, const TQString&, const TQString& elName ,
const TQXmlAttributes& elAttrs) {
try {
- if (pMain->gncdebug) qDebug ("XML start - %s", elName.latin1());
+ if (pMain->gncdebug) tqDebug ("XML start - %s", elName.latin1());
#ifdef _GNCFILEANON
int i;
TQString spaces;
@@ -935,9 +935,9 @@ bool XmlReader::startElement (const TQString&, const TQString&, const TQString&
#ifndef _GNCFILEANON
// we can't pass on exceptions here coz the XML reader won't catch them and we just abort
KMessageBox::error(0, i18n("Import failed:\n\n%1").arg(e->what()), PACKAGE);
- qFatal ("%s", e->what().latin1());
+ tqFatal ("%s", e->what().latin1());
#else
- qFatal ("%s", e->latin1());
+ tqFatal ("%s", e->latin1());
#endif // _GNCFILEANON
}
return true; // to keep compiler happy
@@ -945,7 +945,7 @@ bool XmlReader::startElement (const TQString&, const TQString&, const TQString&
bool XmlReader::endElement( const TQString&, const TQString&, const TQString&elName ) {
try {
- if (pMain->xmldebug) qDebug ("XML end - %s", elName.latin1());
+ if (pMain->xmldebug) tqDebug ("XML end - %s", elName.latin1());
#ifdef _GNCFILEANON
TQString spaces;
switch (lastType) {
@@ -970,19 +970,19 @@ bool XmlReader::endElement( const TQString&, const TQString&, const TQString&elN
#ifndef _GNCFILEANON
// we can't pass on exceptions here coz the XML reader won't catch them and we just abort
KMessageBox::error(0, i18n("Import failed:\n\n%1").arg(e->what()), PACKAGE);
- qFatal ("%s", e->what().latin1());
+ tqFatal ("%s", e->what().latin1());
#else
- qFatal ("%s", e->latin1());
+ tqFatal ("%s", e->latin1());
#endif // _GNCFILEANON
}
return (true); // to keep compiler happy
}
bool XmlReader::characters (const TQString &data) {
- if (pMain->xmldebug) qDebug ("XML Data received - %d bytes", data.length());
+ if (pMain->xmldebug) tqDebug ("XML Data received - %d bytes", data.length());
TQString pData = data.stripWhiteSpace(); // data may contain line feeds and indentation spaces
if (!pData.isEmpty()) {
- if (pMain->developerDebug) qDebug ("XML Data - %s", pData.latin1());
+ if (pMain->developerDebug) tqDebug ("XML Data - %s", pData.latin1());
m_co->storeData (pData); //go store it
#ifdef _GNCFILEANON
TQString anonData = m_co->getData ();
@@ -1046,7 +1046,7 @@ void MyMoneyGncReader::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage)
TQ_CHECK_PTR (storage);
m_storage = dynamic_cast<IMyMoneyStorage *>(storage);
- qDebug ("Entering gnucash importer");
+ tqDebug ("Entering gnucash importer");
setOptions ();
// get a file anonymization factor from the user
if (bAnonymize) setFileHideFactor ();
@@ -1060,20 +1060,20 @@ void MyMoneyGncReader::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage)
ft.commit();
} catch (MyMoneyException *e) {
KMessageBox::error(0, i18n("Import failed:\n\n%1").arg(e->what()), PACKAGE);
- qFatal ("%s", e->what().latin1());
+ tqFatal ("%s", e->what().latin1());
} // end catch
signalProgress (0, 1, i18n("Import complete")); // switch off progress bar
delete m_xr;
- qDebug ("Exiting gnucash importer");
+ tqDebug ("Exiting gnucash importer");
return ;
}
#else
// Control code for the file anonymizer
void MyMoneyGncReader::readFile(TQString in, TQString out) {
TQFile pDevice (in);
- if (!pDevice.open (IO_ReadOnly)) qFatal ("Can't open input file");
+ if (!pDevice.open (IO_ReadOnly)) tqFatal ("Can't open input file");
TQFile outFile (out);
- if (!outFile.open (IO_WriteOnly)) qFatal ("Can't open output file");
+ if (!outFile.open (IO_WriteOnly)) tqFatal ("Can't open output file");
oStream.setDevice (&outFile);
bAnonymize = true;
// get a file anonymization factor from the user
@@ -1082,7 +1082,7 @@ void MyMoneyGncReader::readFile(TQString in, TQString out) {
try {
m_xr->processFile (&pDevice);
} catch (MyMoneyException *e) {
- qFatal ("%s", e->latin1());
+ tqFatal ("%s", e->latin1());
} // end catch
delete m_xr;
pDevice.close();
@@ -1103,7 +1103,7 @@ int main (int argc, char ** argv) {
"Gnucash files(*.nc *)",
0);
}
- if (inFile.isEmpty()) qFatal ("Input file required");
+ if (inFile.isEmpty()) tqFatal ("Input file required");
if (outFile.isEmpty()) outFile = inFile + ".anon";
m.readFile (inFile, outFile);
exit (0);
@@ -1146,7 +1146,7 @@ void MyMoneyGncReader::convertCommodity (const GncCommodity *gcm) {
m_storage->addSecurity(equ);
//assign the gnucash id as the key into the map to find our id
- if (gncdebug) qDebug ("mapping, key = %s, id = %s", gcm->id().latin1(), equ.id().data());
+ if (gncdebug) tqDebug ("mapping, key = %s, id = %s", gcm->id().latin1(), equ.id().data());
m_mapEquities[gcm->id().utf8()] = equ.id();
}
signalProgress (++m_commodityCount, 0);
@@ -1165,7 +1165,7 @@ void MyMoneyGncReader::convertPrice (const GncPrice *gpr) {
m_storage->addPrice (exchangeRate);
} else {
MyMoneySecurity e = m_storage->security(m_mapEquities[gpr->commodity()->id().utf8()]);
- if (gncdebug) qDebug ("Searching map, key = %s, found id = %s",
+ if (gncdebug) tqDebug ("Searching map, key = %s, found id = %s",
gpr->commodity()->id().latin1(), e.id().data());
e.setTradingCurrency (gpr->currency()->id().utf8());
MyMoneyPrice stockPrice(e.id(), gpr->currency()->id().utf8(), gpr->priceDate(), rate, i18n("Imported History"));
@@ -1269,12 +1269,12 @@ void MyMoneyGncReader::convertAccount (const GncAccount* gac) {
m_stockList.append (gac->id());
// set the equity type
MyMoneySecurity e = m_storage->security (m_mapEquities[gac->commodity()->id().utf8()]);
- if (gncdebug) qDebug ("Acct equity search, key = %s, found id = %s",
+ if (gncdebug) tqDebug ("Acct equity search, key = %s, found id = %s",
gac->commodity()->id().latin1(), e.id().data());
acc.setCurrencyId (e.id()); // actually, the security id
if ("MUTUAL" == gac->type()) {
e.setSecurityType (MyMoneySecurity::SECURITY_MUTUALFUND);
- if (gncdebug) qDebug ("Setting %s to mutual", e.name().latin1());
+ if (gncdebug) tqDebug ("Setting %s to mutual", e.name().latin1());
m_storage->modifySecurity (e);
}
// See if he wants online quotes for this account
@@ -1310,7 +1310,7 @@ void MyMoneyGncReader::convertAccount (const GncAccount* gac) {
m_storage->addAccount(acc);
m_mapIds[gac->id().utf8()] = acc.id(); // to link gnucash id to ours for tx posting
- if (gncdebug) qDebug("Gnucash account %s has id of %s, type of %s, parent is %s",
+ if (gncdebug) tqDebug("Gnucash account %s has id of %s, type of %s, parent is %s",
gac->id().latin1(), acc.id().data(),
KMyMoneyUtils::accountTypeToString(acc.accountType()).latin1(), acc.parentAccountId().data());
@@ -1400,7 +1400,7 @@ void MyMoneyGncReader::convertSplit (const GncSplit *gsp) {
splitAccount = m_storage->account (kmmAccountId);
// print some data so we can maybe identify this split later
// TODO : prints personal data
- //if (gncdebug) qDebug ("Split data - gncid %s, kmmid %s, memo %s, value %s, recon state %s",
+ //if (gncdebug) tqDebug ("Split data - gncid %s, kmmid %s, memo %s, value %s, recon state %s",
// gsp->acct().latin1(), kmmAccountId.data(), gsp->memo().latin1(), gsp->value().latin1(),
// gsp->recon().latin1());
// payee id
@@ -1464,7 +1464,7 @@ void MyMoneyGncReader::convertSplit (const GncSplit *gsp) {
// we can't use m_storage->security coz security list is not built yet
m_storage->currency(m_txCommodity); // will throw exception if not currency
e.setTradingCurrency (m_txCommodity);
- if (gncdebug) qDebug ("added price for %s, %s date %s",
+ if (gncdebug) tqDebug ("added price for %s, %s date %s",
e.name().latin1(), newPrice.toString().latin1(),
TQString(m_txDatePosted.toString(Qt::ISODate)).latin1());
m_storage->modifySecurity(e);
@@ -1628,7 +1628,7 @@ void MyMoneyGncReader::convertTemplateSplit (const TQString& schedName, const Gn
}
// all data read, now check we have everything
if ((bFoundStringCreditFormula) && (bFoundStringDebitFormula) && (bFoundGuidAccountId)) {
- if (gncdebug) qDebug ("Found valid slot; credit %s, debit %s, acct %s",
+ if (gncdebug) tqDebug ("Found valid slot; credit %s, debit %s, acct %s",
gncCreditFormula.latin1(), gncDebitFormula.latin1(), gncAccountId.latin1());
validSlotCount++;
}
@@ -1654,7 +1654,7 @@ void MyMoneyGncReader::convertTemplateSplit (const TQString& schedName, const Gn
exFormula = numericTest;
}
} else {
- if (gncdebug) qDebug ("%s is not numeric", numericTest.latin1());
+ if (gncdebug) tqDebug ("%s is not numeric", numericTest.latin1());
nonNumericFormula = true;
}
split.setValue (exFormula);
@@ -1783,7 +1783,7 @@ void MyMoneyGncReader::convertSchedule (const GncSchedule *gsc) {
unknownOccurs = true;
} else {
const GncRecurrence *gre = gsc->m_vpRecurrence.first();
- //qDebug (TQString("Sched %1, pt %2, mu %3, sd %4").arg(gsc->name()).arg(gre->periodType())
+ //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)));
frequency = gre->getFrequency();
schedEnabled = gsc->enabled();
@@ -1853,9 +1853,9 @@ void MyMoneyGncReader::convertSchedule (const GncSchedule *gsc) {
sc.setPaymentType((MyMoneySchedule::paymentTypeE)MyMoneySchedule::STYPE_OTHER);
sc.setFixed (!m_suspectSchedule); // if any probs were found, set it as variable so user will always be prompted
// we don't currently have a 'disable' option, but just make sure auto-enter is off if not enabled
- //qDebug(TQString("%1 and %2").arg(gsc->autoCreate()).arg(schedEnabled));
+ //tqDebug(TQString("%1 and %2").arg(gsc->autoCreate()).arg(schedEnabled));
sc.setAutoEnter ((gsc->autoCreate() == "y") && (schedEnabled == "y"));
- //qDebug(TQString("autoEnter set to %1").arg(sc.autoEnter()));
+ //tqDebug(TQString("autoEnter set to %1").arg(sc.autoEnter()));
// type
TQString actionType = tx.splits().first().action();
if (actionType == MyMoneySplit::ActionDeposit) {
@@ -1896,9 +1896,9 @@ void MyMoneyGncReader::terminate () {
TRY
// All data has been converted and added to storage
// this code is just temporary to show us what is in the file.
- if (gncdebug) qDebug("%d accounts found in the GnuCash file", (unsigned int)m_mapIds.count());
+ if (gncdebug) tqDebug("%d accounts found in the GnuCash file", (unsigned int)m_mapIds.count());
for (map_accountIds::Iterator it = m_mapIds.begin(); it != m_mapIds.end(); ++it) {
- if (gncdebug) qDebug("key = %s, value = %s", it.key().data(), it.data().data());
+ if (gncdebug) tqDebug("key = %s, value = %s", it.key().data(), it.data().data());
}
// first step is to implement the users investment option, now we
// have all the accounts available
@@ -1916,33 +1916,33 @@ void MyMoneyGncReader::terminate () {
if ((*acc).parentAccountId() == m_storage->asset().id()) {
MyMoneyAccount assets = m_storage->asset();
m_storage->addAccount(assets, (*acc));
- if (gncdebug) qDebug("Account id %s is a child of the main asset account", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of the main asset account", (*acc).id().data());
} else if ((*acc).parentAccountId() == m_storage->liability().id()) {
MyMoneyAccount liabilities = m_storage->liability();
m_storage->addAccount(liabilities, (*acc));
- if (gncdebug) qDebug("Account id %s is a child of the main liability account", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of the main liability account", (*acc).id().data());
} else if ((*acc).parentAccountId() == m_storage->income().id()) {
MyMoneyAccount incomes = m_storage->income();
m_storage->addAccount(incomes, (*acc));
- if (gncdebug) qDebug("Account id %s is a child of the main income account", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of the main income account", (*acc).id().data());
} else if ((*acc).parentAccountId() == m_storage->expense().id()) {
MyMoneyAccount expenses = m_storage->expense();
m_storage->addAccount(expenses, (*acc));
- if (gncdebug) qDebug("Account id %s is a child of the main expense account", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of the main expense account", (*acc).id().data());
} else if ((*acc).parentAccountId() == m_storage->equity().id()) {
MyMoneyAccount equity = m_storage->equity();
m_storage->addAccount(equity, (*acc));
- if (gncdebug) qDebug("Account id %s is a child of the main equity account", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of the main equity account", (*acc).id().data());
} else if ((*acc).parentAccountId() == m_rootId) {
- if (gncdebug) qDebug("Account id %s is a child of root", (*acc).id().data());
+ if (gncdebug) tqDebug("Account id %s is a child of root", (*acc).id().data());
} else {
// it is not under one of the main accounts, so find gnucash parent
TQString parentKey = (*acc).parentAccountId();
- if (gncdebug) qDebug ("acc %s, parent %s", (*acc).id().data(),
+ if (gncdebug) tqDebug ("acc %s, parent %s", (*acc).id().data(),
(*acc).parentAccountId().data());
map_accountIds::Iterator id = m_mapIds.find(parentKey);
if (id != m_mapIds.end()) {
- if (gncdebug) qDebug("Setting account id %s's parent account id to %s",
+ if (gncdebug) tqDebug("Setting account id %s's parent account id to %s",
(*acc).id().data(), id.data().data());
MyMoneyAccount parent = m_storage->account(id.data());
parent = checkConsistency (parent, (*acc));
@@ -2071,12 +2071,12 @@ TQString MyMoneyGncReader::buildReportSection (const TQString& source) {
}
if (more) s.append (i18n("\n\nPress More for further information"));
} else { // we need to retrieve the posted messages for this source
- if (gncdebug) qDebug("Building messages for source %s", source.latin1());
+ if (gncdebug) tqDebug("Building messages for source %s", source.latin1());
unsigned int i, j;
for (i = 0; i < m_messageList.count(); i++) {
GncMessageArgs *m = m_messageList.at(i);
if (m->source == source) {
- if (gncdebug) qDebug("%s", TQString("build text source %1, code %2, argcount %3")
+ if (gncdebug) tqDebug("%s", TQString("build text source %1, code %2, argcount %3")
.arg(m->source).arg(m->code).arg(m->args.count()).data());
TQString ss = GncMessages::text (m->source, m->code);
// add variable args. the .arg function seems always to replace the
@@ -2087,7 +2087,7 @@ TQString MyMoneyGncReader::buildReportSection (const TQString& source) {
}
}
}
- if (gncdebug) qDebug ("%s", s.latin1());
+ if (gncdebug) tqDebug ("%s", s.latin1());
return (static_cast<const TQString>(s));
PASS
}
@@ -2217,9 +2217,9 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
invAcc.setParentAccountId (parentKey); // intersperse it between old parent and child stock acct
m_storage->addAccount (invAcc);
m_mapIds [invAcc.id()] = invAcc.id(); // so stock account gets parented (again) to investment account later
- if (gncdebug) qDebug ("Created investment account %s as id %s, parent %s", invAcc.name().data(), invAcc.id().data(),
+ if (gncdebug) tqDebug ("Created investment account %s as id %s, parent %s", invAcc.name().data(), invAcc.id().data(),
invAcc.parentAccountId().data());
- if (gncdebug) qDebug ("Setting stock %s, id %s, as child of %s", stockAcc.name().data(), stockAcc.id().data(), invAcc.id().data());
+ if (gncdebug) tqDebug ("Setting stock %s, id %s, as child of %s", stockAcc.name().data(), stockAcc.id().data(), invAcc.id().data());
stockAcc.setParentAccountId (invAcc.id());
m_storage->addAccount(invAcc, stockAcc);
// investment option 1 creates a single investment account for all stocks
@@ -2240,7 +2240,7 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
singleInvAcc.setParentAccountId (m_storage->asset().id());
m_storage->addAccount (singleInvAcc);
m_mapIds [singleInvAcc.id()] = singleInvAcc.id(); // so stock account gets parented (again) to investment account later
- if (gncdebug) qDebug ("Created investment account %s as id %s, parent %s, reparenting stock",
+ if (gncdebug) tqDebug ("Created investment account %s as id %s, parent %s, reparenting stock",
singleInvAcc.name().data(), singleInvAcc.id().data(), singleInvAcc.parentAccountId().data());
singleInvAccId = singleInvAcc.id();
} else { // the account has already been created
@@ -2263,7 +2263,7 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
// if (((*acc).accountGroup() == MyMoneyAccount::Asset) && ((*acc).accountType() != MyMoneyAccount::Stock)) accList.append ((*acc).name());
if ((*acc).accountType() == MyMoneyAccount::Investment) accList.append ((*acc).name());
}
- //if (accList.isEmpty()) qFatal ("No available accounts");
+ //if (accList.isEmpty()) tqFatal ("No available accounts");
bool ok = false;
while (!ok) { // keep going till we have a valid investment parent
TQString invAccName = TQInputDialog::getItem (
@@ -2300,7 +2300,7 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
ok = false; break;
default:
// convert it - but what if it has splits???
- qFatal ("Not yet implemented");
+ tqFatal ("Not yet implemented");
ok = true;
break;
}
@@ -2308,7 +2308,7 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
switch(KMessageBox::questionYesNo(0, i18n ("%1 is not an Investment Account. Do you wish to make it one?").arg(invAcc.name(), PACKAGE))) {
case KMessageBox::Yes:
// convert it - but what if it has splits???
- qFatal ("Not yet implemented");
+ tqFatal ("Not yet implemented");
ok = true;
break;
default:
@@ -2321,7 +2321,7 @@ void MyMoneyGncReader::checkInvestmentOption (TQString stockId) {
m_mapIds [invAcc.id()] = invAcc.id(); // so stock account gets parented (again) to investment account later
m_storage->addAccount(invAcc, stockAcc);
} else { // investment option != 0, 1, 2
- qFatal ("Invalid investment option %d", m_investmentOption);
+ tqFatal ("Invalid investment option %d", m_investmentOption);
}
}
@@ -2394,7 +2394,7 @@ void MyMoneyGncReader::postMessage (const TQString& source, const unsigned int c
// get the number of args this message requires
const unsigned int argCount = GncMessages::argCount (source, code);
if ((gncdebug) && (argCount != argList.count()))
- qDebug("%s", TQString("MyMoneyGncReader::postMessage debug: Message %1, code %2, requires %3 arguments, got %4")
+ tqDebug("%s", TQString("MyMoneyGncReader::postMessage debug: Message %1, code %2, requires %3 arguments, got %4")
.arg(source).arg(code).arg(argCount).arg(argList.count()).data());
// store the arguments
for (i = 0; i < argCount; i++) {
diff --git a/kmymoney2/converter/mymoneyqifprofile.cpp b/kmymoney2/converter/mymoneyqifprofile.cpp
index 880b1c2..f0533db 100644
--- a/kmymoney2/converter/mymoneyqifprofile.cpp
+++ b/kmymoney2/converter/mymoneyqifprofile.cpp
@@ -473,7 +473,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
}
}
if(j == 13) {
- qWarning("Unknown month '%s'", scannedParts[d->m_partPos['m']].data());
+ tqWarning("Unknown month '%s'", scannedParts[d->m_partPos['m']].data());
return TQDate();
}
}
@@ -501,7 +501,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
if(m_dateFormat[i] == '%') {
++part;
if(part == 3) {
- qWarning("MyMoneyQifProfile::date(const TQString& datein) Too many parts in date format");
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) Too many parts in date format");
return TQDate();
}
++i;
@@ -517,14 +517,14 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
case '.':
case '\'':
if(delim == 2) {
- qWarning("MyMoneyQifProfile::date(const TQString& datein) Too many delimiters in date format");
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) Too many delimiters in date format");
return TQDate();
}
formatDelim[delim] = m_dateFormat[i];
++delim;
break;
default:
- qWarning("MyMoneyQifProfile::date(const TQString& datein) Invalid char in date format");
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) Invalid char in date format");
return TQDate();
}
}
@@ -540,7 +540,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
case '-':
case '\'':
if(delim == 2) {
- qWarning("MyMoneyQifProfile::date(const TQString& datein) Too many delimiters in date field");
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) Too many delimiters in date field");
return TQDate();
}
scannedDelim[delim] = datein[i];
@@ -569,7 +569,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
for(i = 0; i < 2; ++i) {
if(scannedDelim[i] != formatDelim[i]
&& scannedDelim[i] != TQChar('\'')) {
- qWarning("MyMoneyQifProfile::date(const TQString& datein) Invalid delimiter '%s' when '%s' was expected",
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) Invalid delimiter '%s' when '%s' was expected",
scannedDelim[i].latin1(), formatDelim[i].latin1());
return TQDate();
}
@@ -654,7 +654,7 @@ const TQDate MyMoneyQifProfile::date(const TQString& datein) const
break;
}
if(!msg.isEmpty()) {
- qWarning("MyMoneyQifProfile::date(const TQString& datein) %s",msg.latin1());
+ tqWarning("MyMoneyQifProfile::date(const TQString& datein) %s",msg.latin1());
return TQDate();
}
}
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp
index a974e8f..3161a0b 100644
--- a/kmymoney2/converter/mymoneyqifreader.cpp
+++ b/kmymoney2/converter/mymoneyqifreader.cpp
@@ -129,7 +129,7 @@ void MyMoneyQifReader::Private::finishStatement(void)
// in case we have collected any data in the statement, we keep it
if((st.m_listTransactions.count() + st.m_listPrices.count() + st.m_listSecurities.count()) > 0) {
statements += st;
- qDebug("Statement with %d transactions, %d prices and %d securities added to the statement list",
+ tqDebug("Statement with %d transactions, %d prices and %d securities added to the statement list",
st.m_listTransactions.count(), st.m_listPrices.count(), st.m_listSecurities.count());
}
// start with a fresh statement
@@ -288,7 +288,7 @@ void MyMoneyQifReader::slotSendDataToFilter(void)
} else {
len = m_file->readBlock(m_buffer, sizeof(m_buffer));
if(len == -1) {
- qWarning("Failed to read block from TQIF import file");
+ tqWarning("Failed to read block from TQIF import file");
m_filter.closeStdin();
m_filter.kill();
} else {
@@ -301,7 +301,7 @@ void MyMoneyQifReader::slotReceivedErrorFromFilter(KProcess* /* proc */, char *b
{
TQByteArray data;
data.duplicate(buff, len);
- qWarning("%s",static_cast<const char*>(data));
+ tqWarning("%s",static_cast<const char*>(data));
}
void MyMoneyQifReader::slotReceivedDataFromFilter(KProcess* /* proc */, char *buff, int len)
@@ -332,7 +332,7 @@ void MyMoneyQifReader::slotImportFinished(void)
if(!m_lineBuffer.isEmpty()) {
m_qifLines << TQString::fromUtf8(m_lineBuffer.stripWhiteSpace());
}
- qDebug("Read %d bytes", m_pos);
+ tqDebug("Read %d bytes", m_pos);
TQTimer::singleShot(0, this, TQT_SLOT(slotProcessData()));
}
@@ -361,13 +361,13 @@ void MyMoneyQifReader::slotProcessData(void)
m_qifProfile.setInputDateFormat(list.first());
- qDebug("Selected date format: '%s'", list.first().data());
+ tqDebug("Selected date format: '%s'", list.first().data());
signalProgress(0, m_qifLines.count(), i18n("Importing TQIF ..."));
TQStringList::iterator it;
for(it = m_qifLines.begin(); m_userAbort == false && it != m_qifLines.end(); ++it) {
++m_linenumber;
- // qDebug("Proc: '%s'", (*it).data());
+ // tqDebug("Proc: '%s'", (*it).data());
if((*it).startsWith("!")) {
processQifSpecial(*it);
m_qifEntry.clear();
@@ -383,7 +383,7 @@ void MyMoneyQifReader::slotProcessData(void)
}
d->finishStatement();
- qDebug("%d lines processed", m_linenumber);
+ tqDebug("%d lines processed", m_linenumber);
signalProgress(-1, -1);
emit importFinished();
@@ -419,7 +419,7 @@ bool MyMoneyQifReader::startImport(void)
while(!m_file->atEnd()) {
len = m_file->readBlock(m_buffer, sizeof(m_buffer));
if(len == -1) {
- qWarning("Failed to read block from TQIF import file");
+ tqWarning("Failed to read block from TQIF import file");
} else {
slotReceivedDataFromFilter(0, m_buffer, len);
}
@@ -443,7 +443,7 @@ bool MyMoneyQifReader::startImport(void)
slotSendDataToFilter();
rc = true;
} else {
- qDebug("starting filter failed :-(");
+ tqDebug("starting filter failed :-(");
}
#endif
}
@@ -493,7 +493,7 @@ bool MyMoneyQifReader::finishImport(void)
signalProgress(-1, -1);
rc = !m_userAbort && m_filter.normalExit();
} else {
- qWarning("MyMoneyQifReader::finishImport() must not be called while the filter\n\tprocess is still running.");
+ tqWarning("MyMoneyQifReader::finishImport() must not be called while the filter\n\tprocess is still running.");
}
#endif
@@ -617,7 +617,7 @@ void MyMoneyQifReader::processQifSpecial(const TQString& _line)
m_entryType = EntrySkip;
} else {
- qWarning("Unknown export header '!Type:%s' in TQIF file on line %d: Skipping section.", line.data(), m_linenumber);
+ tqWarning("Unknown export header '!Type:%s' in TQIF file on line %d: Skipping section.", line.data(), m_linenumber);
m_entryType = EntrySkip;
}
@@ -1990,7 +1990,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId)
TQString tmp;
account.setName(extractLine('N'));
- // qDebug("Process account '%s'", account.name().data());
+ // tqDebug("Process account '%s'", account.name().data());
account.setDescription(extractLine('D'));
@@ -2047,7 +2047,7 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId)
parentAccount = file->asset();
kmymoney2->createAccount(acc, parentAccount, brokerage, MyMoneyMoney());
parentAccount = acc;
- qDebug("We still need to create the stock account in MyMoneyQifReader::processAccountEntry()");
+ tqDebug("We still need to create the stock account in MyMoneyQifReader::processAccountEntry()");
} else {
// setup parent according the type of the account
switch(account.accountGroup()) {
@@ -2073,9 +2073,9 @@ TQString MyMoneyQifReader::processAccountEntry(bool resetAccountId)
}
kmymoney2->createAccount(account, parentAccount, brokerage, balance);
acc = account;
- // qDebug("Account created");
+ // tqDebug("Account created");
} else {
- // qDebug("Existing account found");
+ // tqDebug("Existing account found");
}
if(resetAccountId) {
diff --git a/kmymoney2/converter/mymoneystatementreader.cpp b/kmymoney2/converter/mymoneystatementreader.cpp
index c08dcff..8d26a1b 100644
--- a/kmymoney2/converter/mymoneystatementreader.cpp
+++ b/kmymoney2/converter/mymoneystatementreader.cpp
@@ -233,7 +233,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
try {
m_account = MyMoneyFile::instance()->account(s.m_accountId);
} catch(MyMoneyException* e) {
- qDebug("Received reference '%s' to unknown account in statement", s.m_accountId.data());
+ tqDebug("Received reference '%s' to unknown account in statement", s.m_accountId.data());
delete e;
}
}
@@ -284,7 +284,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
try {
MyMoneyFile::instance()->modifyAccount(m_account);
} catch(MyMoneyException* e) {
- qDebug("Updating account in MyMoneyStatementReader::startImport failed");
+ tqDebug("Updating account in MyMoneyStatementReader::startImport failed");
delete e;
}
}
@@ -295,7 +295,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
else if(s.m_listTransactions.count() == 0)
messages += i18n("Importing statement without transactions");
- qDebug("Importing statement for '%s'", m_account.name().data());
+ tqDebug("Importing statement for '%s'", m_account.name().data());
//
// Process the securities
@@ -318,7 +318,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
if ( !m_userAbort )
{
try {
- qDebug("Processing transactions (%s)", m_account.name().data());
+ tqDebug("Processing transactions (%s)", m_account.name().data());
signalProgress(0, s.m_listTransactions.count(), "Importing Statement ...");
int progress = 0;
TQValueList<MyMoneyStatement::Transaction>::const_iterator it_t = s.m_listTransactions.begin();
@@ -328,13 +328,13 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
signalProgress(++progress, 0);
++it_t;
}
- qDebug("Processing transactions done (%s)", m_account.name().data());
+ tqDebug("Processing transactions done (%s)", m_account.name().data());
} catch(MyMoneyException* e) {
if(e->what() == "USERABORT")
m_userAbort = true;
else
- qDebug("Caught exception from processTransactionEntry() not caused by USERABORT: %s", e->what().data());
+ tqDebug("Caught exception from processTransactionEntry() not caused by USERABORT: %s", e->what().data());
delete e;
}
signalProgress(-1, -1);
@@ -365,7 +365,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
if(e->what() == "USERABORT")
m_userAbort = true;
else
- qDebug("Caught exception from processPriceEntry() not caused by USERABORT: %s", e->what().data());
+ tqDebug("Caught exception from processPriceEntry() not caused by USERABORT: %s", e->what().data());
delete e;
}
signalProgress(-1, -1);
@@ -419,7 +419,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
delete m_ft;
m_ft = 0;
- qDebug("Importing statement for '%s' done", m_account.name().data());
+ tqDebug("Importing statement for '%s' done", m_account.name().data());
return rc;
}
@@ -501,7 +501,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);
- qDebug("%s", dbgMsg.data());
+ tqDebug("%s", dbgMsg.data());
#endif
// mark it imported for the view
@@ -958,7 +958,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra
try {
file->addPayee(payee);
- qDebug("Payee '%s' created", payee.name().data());
+ tqDebug("Payee '%s' created", payee.name().data());
d->payees << payee;
payeeid = payee.id();
s1.setPayeeId(payeeid);
@@ -1157,7 +1157,7 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra
break;
case TransactionMatcher::matched:
case TransactionMatcher::matchedExact:
- qDebug("Detected as match to transaction '%s'", tm.id().data());
+ tqDebug("Detected as match to transaction '%s'", tm.id().data());
matcher.match(tm, matchedSplit, t, s1, true);
d->transactionsMatched++;
break;
@@ -1221,12 +1221,12 @@ void MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra
}
} else {
d->transactionsDuplicate++;
- qDebug("Detected as duplicate");
+ tqDebug("Detected as duplicate");
}
delete o;
} catch (MyMoneyException *e) {
TQString message(i18n("Problem adding or matching imported transaction with id '%1': %2").arg(t_in.m_strBankID).arg(e->what()));
- qDebug("%s", message.data());
+ tqDebug("%s", message.data());
delete e;
int result = KMessageBox::warningContinueCancel(0, message);
@@ -1325,7 +1325,7 @@ bool MyMoneyStatementReader::selectOrCreateAccount(const SelectCreateMode /*mode
ft.commit();
accname = account.name();
} catch(MyMoneyException* e) {
- qDebug("Updating account in MyMoneyStatementReader::selectOrCreateAccount failed");
+ tqDebug("Updating account in MyMoneyStatementReader::selectOrCreateAccount failed");
delete e;
}
}
diff --git a/kmymoney2/converter/mymoneytemplate.cpp b/kmymoney2/converter/mymoneytemplate.cpp
index 1bbd7c6..553e682 100644
--- a/kmymoney2/converter/mymoneytemplate.cpp
+++ b/kmymoney2/converter/mymoneytemplate.cpp
@@ -57,7 +57,7 @@ bool MyMoneyTemplate::loadTemplate(const KURL& url)
TQString filename;
if(!url.isValid()) {
- qDebug("Invalid template URL '%s'", url.url().latin1());
+ tqDebug("Invalid template URL '%s'", url.url().latin1());
return false;
}
@@ -125,7 +125,7 @@ bool MyMoneyTemplate::loadDescription(void)
TQDomNode child = rootElement.firstChild();
while(!child.isNull() && child.isElement()) {
TQDomElement childElement = child.toElement();
- // qDebug("MyMoneyTemplate::import: Processing child node %s", childElement.tagName().data());
+ // tqDebug("MyMoneyTemplate::import: Processing child node %s", childElement.tagName().data());
if(childElement.tagName() == "accounts") {
m_accounts = childElement.firstChild();
validMask |= validAccount;
@@ -385,7 +385,7 @@ bool MyMoneyTemplate::saveTemplate(const KURL& url)
TQString filename;
if(!url.isValid()) {
- qDebug("Invalid template URL '%s'", url.url().latin1());
+ tqDebug("Invalid template URL '%s'", url.url().latin1());
return false;
}
diff --git a/kmymoney2/converter/webpricequote.cpp b/kmymoney2/converter/webpricequote.cpp
index 7f43686..87fe9ec 100644
--- a/kmymoney2/converter/webpricequote.cpp
+++ b/kmymoney2/converter/webpricequote.cpp
@@ -833,7 +833,7 @@ void FinanceQuoteProcess::launch (const TQString& scriptPath) {
arguments.append(TQCString("perl"));
arguments.append (TQCString(scriptPath));
arguments.append (TQCString("-l"));
- if (!start(KProcess::NotifyOnExit, KProcess::Stdout)) qFatal ("Unable to start FQ script");
+ if (!start(KProcess::NotifyOnExit, KProcess::Stdout)) tqFatal ("Unable to start FQ script");
return;
}
diff --git a/kmymoney2/dialogs/investactivities.cpp b/kmymoney2/dialogs/investactivities.cpp
index 75081b7..c5adc66 100644
--- a/kmymoney2/dialogs/investactivities.cpp
+++ b/kmymoney2/dialogs/investactivities.cpp
@@ -155,7 +155,7 @@ void Activity::setLabelText(const TQString& idx, const TQString& txt) const
if(w) {
w->setText(txt);
} else {
- qDebug("Unknown TQLabel named '%s'", idx.data());
+ tqDebug("Unknown TQLabel named '%s'", idx.data());
}
}
@@ -484,7 +484,7 @@ bool Reinvest::createTransaction(MyMoneyTransaction& t, MyMoneySplit& s0, MyMone
return false;
if(interestSplits.count() != 1) {
- qDebug("more or less than one interest split in Reinvest::createTransaction. Not created.");
+ tqDebug("more or less than one interest split in Reinvest::createTransaction. Not created.");
return false;
}
diff --git a/kmymoney2/dialogs/investtransactioneditor.cpp b/kmymoney2/dialogs/investtransactioneditor.cpp
index 1f6f6da..b46e9d1 100644
--- a/kmymoney2/dialogs/investtransactioneditor.cpp
+++ b/kmymoney2/dialogs/investtransactioneditor.cpp
@@ -362,7 +362,7 @@ int InvestTransactionEditor::editSplits(const TQString& categoryWidgetName, cons
d->m_phonyAccount.setCurrencyId(m_transaction.commodity());
d->m_phonyAccount.fraction(MyMoneyFile::instance()->security(m_transaction.commodity()));
} catch(MyMoneyException *e) {
- qDebug("Unable to setup precision");
+ tqDebug("Unable to setup precision");
delete e;
}
diff --git a/kmymoney2/dialogs/kcurrencycalculator.cpp b/kmymoney2/dialogs/kcurrencycalculator.cpp
index 0ecd16e..54e6f6e 100644
--- a/kmymoney2/dialogs/kcurrencycalculator.cpp
+++ b/kmymoney2/dialogs/kcurrencycalculator.cpp
@@ -287,7 +287,7 @@ void KCurrencyCalculator::accept(void)
MyMoneyFile::instance()->addPrice(pr);
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Cannot add price");
+ tqDebug("Cannot add price");
delete e;
}
}
diff --git a/kmymoney2/dialogs/kcurrencyeditdlg.cpp b/kmymoney2/dialogs/kcurrencyeditdlg.cpp
index d902941..d7add09 100644
--- a/kmymoney2/dialogs/kcurrencyeditdlg.cpp
+++ b/kmymoney2/dialogs/kcurrencyeditdlg.cpp
@@ -175,7 +175,7 @@ void KCurrencyEditDlg::updateCurrency(void)
MyMoneyFile::instance()->modifyCurrency(m_currency);
ft.commit();
} catch(MyMoneyException *e) {
- qWarning("Updateing the currency failed!");
+ tqWarning("Updateing the currency failed!");
delete e;
}
}
@@ -257,7 +257,7 @@ void KCurrencyEditDlg::slotRenameCurrency(TQListViewItem* item, int /* col */, c
try {
if(txt != m_currency.name()) {
- qDebug("Renaming");
+ tqDebug("Renaming");
MyMoneySecurity currency = file->currency(p->id());
currency.setName(txt);
MyMoneyFileTransaction ft;
@@ -266,7 +266,7 @@ void KCurrencyEditDlg::slotRenameCurrency(TQListViewItem* item, int /* col */, c
m_currency = currency;
ft.commit();
} catch(MyMoneyException* e) {
- qDebug("Renaming currency failed");
+ tqDebug("Renaming currency failed");
delete e;
}
}
diff --git a/kmymoney2/dialogs/keditloanwizard.cpp b/kmymoney2/dialogs/keditloanwizard.cpp
index 6350845..b9a2fcc 100644
--- a/kmymoney2/dialogs/keditloanwizard.cpp
+++ b/kmymoney2/dialogs/keditloanwizard.cpp
@@ -172,7 +172,7 @@ void KEditLoanWizard::loadWidgets(const MyMoneyAccount& /* account */)
m_payeeEdit->setSelectedItem(payee.id());
} catch(MyMoneyException *e) {
delete e;
- qWarning("Payee for schedule has been deleted");
+ tqWarning("Payee for schedule has been deleted");
}
}
@@ -318,7 +318,7 @@ void KEditLoanWizard::next()
setFinishEnabled(m_summaryPage, true);
} else {
- qFatal("%s,%d: This should never happen", __FILE__, __LINE__);
+ tqFatal("%s,%d: This should never happen", __FILE__, __LINE__);
}
m_lastSelection = m_selectionButtonGroup->id(m_selectionButtonGroup->selected());
diff --git a/kmymoney2/dialogs/keditscheduledlg.cpp b/kmymoney2/dialogs/keditscheduledlg.cpp
index 195a232..1ee14db 100644
--- a/kmymoney2/dialogs/keditscheduledlg.cpp
+++ b/kmymoney2/dialogs/keditscheduledlg.cpp
@@ -358,7 +358,7 @@ const MyMoneySchedule& KEditScheduleDlg::schedule(void) const
break;
}
} else {
- qDebug("No tabbar found in KEditScheduleDlg::schedule(). Defaulting type to BILL");
+ tqDebug("No tabbar found in KEditScheduleDlg::schedule(). Defaulting type to BILL");
}
d->m_schedule.setAutoEnter(m_autoEnterEdit->isChecked());
@@ -389,16 +389,16 @@ bool KEditScheduleDlg::focusNextPrevChild(bool next)
{
bool rc = false;
- // qDebug("KEditScheduleDlg::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
+ // tqDebug("KEditScheduleDlg::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
TQWidget *w = 0;
TQWidget *currentWidget;
w = tqApp->focusWidget();
while(w && d->m_tabOrderWidgets.find(w) == -1) {
- // qDebug("'%s' not in list, use parent", w->className());
+ // tqDebug("'%s' not in list, use parent", w->className());
w = w->parentWidget();
}
- // if(w) qDebug("tab order is at '%s'", w->className());
+ // if(w) tqDebug("tab order is at '%s'", w->className());
currentWidget = d->m_tabOrderWidgets.current();
w = next ? d->m_tabOrderWidgets.next() : d->m_tabOrderWidgets.prev();
@@ -410,7 +410,7 @@ bool KEditScheduleDlg::focusNextPrevChild(bool next)
if(w != currentWidget
&& ((w->focusPolicy() & TQ_TabFocus) == TQ_TabFocus)
&& w->isVisible() && w->isEnabled()) {
- // qDebug("Selecting '%s' as focus", w->className());
+ // tqDebug("Selecting '%s' as focus", w->className());
w->setFocus();
rc = true;
break;
diff --git a/kmymoney2/dialogs/kendingbalancedlg.cpp b/kmymoney2/dialogs/kendingbalancedlg.cpp
index 0195e48..5361613 100644
--- a/kmymoney2/dialogs/kendingbalancedlg.cpp
+++ b/kmymoney2/dialogs/kendingbalancedlg.cpp
@@ -362,7 +362,7 @@ bool KEndingBalanceDlg::createTransaction(MyMoneyTransaction &t, const int sign,
t.modifySplit(s2);
} catch(MyMoneyException *e) {
- qDebug("%s", e->what().data());
+ tqDebug("%s", e->what().data());
delete e;
t = MyMoneyTransaction();
return false;
@@ -590,7 +590,7 @@ const MyMoneyTransaction KEndingBalanceLoanDlg::adjustmentTransaction(void) cons
t.setPostDate(m_endDateEdit->date());
} catch(MyMoneyException *e) {
- qDebug("Unable to create adjustment transaction for loan reconciliation: %s", e->what().data());
+ tqDebug("Unable to create adjustment transaction for loan reconciliation: %s", e->what().data());
delete e;
return MyMoneyTransaction();
}
diff --git a/kmymoney2/dialogs/kenterscheduledlg.cpp b/kmymoney2/dialogs/kenterscheduledlg.cpp
index c225de5..79616cb 100644
--- a/kmymoney2/dialogs/kenterscheduledlg.cpp
+++ b/kmymoney2/dialogs/kenterscheduledlg.cpp
@@ -285,16 +285,16 @@ bool KEnterScheduleDlg::focusNextPrevChild(bool next)
{
bool rc = false;
- // qDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
+ // tqDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
TQWidget *w = 0;
TQWidget *currentWidget;
w = tqApp->focusWidget();
while(w && d->m_tabOrderWidgets.find(w) == -1) {
- // qDebug("'%s' not in list, use parent", w->className());
+ // tqDebug("'%s' not in list, use parent", w->className());
w = w->parentWidget();
}
- // if(w) qDebug("tab order is at '%s'", w->className());
+ // if(w) tqDebug("tab order is at '%s'", w->className());
currentWidget = d->m_tabOrderWidgets.current();
w = next ? d->m_tabOrderWidgets.next() : d->m_tabOrderWidgets.prev();
@@ -306,7 +306,7 @@ bool KEnterScheduleDlg::focusNextPrevChild(bool next)
if(w != currentWidget
&& ((w->focusPolicy() & TQ_TabFocus) == TQ_TabFocus)
&& w->isVisible() && w->isEnabled()) {
- // qDebug("Selecting '%s' as focus", w->className());
+ // tqDebug("Selecting '%s' as focus", w->className());
w->setFocus();
rc = true;
break;
diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
index ada2c25..de48ec7 100644
--- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
+++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
@@ -365,7 +365,7 @@ void KEquityPriceUpdateDlg::storePrices(void)
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Unable to add price information for %s", name.data());
+ tqDebug("Unable to add price information for %s", name.data());
delete e;
}
}
diff --git a/kmymoney2/dialogs/kexportdlg.cpp b/kmymoney2/dialogs/kexportdlg.cpp
index 3332c0d..d71a95c 100644
--- a/kmymoney2/dialogs/kexportdlg.cpp
+++ b/kmymoney2/dialogs/kexportdlg.cpp
@@ -234,7 +234,7 @@ void KExportDlg::loadAccounts(void)
addCategories(strList, file->asset().id(), TQString());
} catch (MyMoneyException *e) {
- qDebug("Exception '%s' thrown in %s, line %ld caught in KExportDlg::loadAccounts:%d",
+ tqDebug("Exception '%s' thrown in %s, line %ld caught in KExportDlg::loadAccounts:%d",
e->what().latin1(), e->file().latin1(), e->line(), __LINE__);
delete e;
}
diff --git a/kmymoney2/dialogs/kmymoneypricedlg.cpp b/kmymoney2/dialogs/kmymoneypricedlg.cpp
index 5e5e268..c77028a 100644
--- a/kmymoney2/dialogs/kmymoneypricedlg.cpp
+++ b/kmymoney2/dialogs/kmymoneypricedlg.cpp
@@ -204,7 +204,7 @@ void KMyMoneyPriceDlg::slotDeletePrice(void)
MyMoneyFile::instance()->removePrice(item->price());
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Cannot delete price");
+ tqDebug("Cannot delete price");
delete e;
}
}
diff --git a/kmymoney2/dialogs/kmymoneysplittable.cpp b/kmymoney2/dialogs/kmymoneysplittable.cpp
index 922b342..405a8f7 100644
--- a/kmymoney2/dialogs/kmymoneysplittable.cpp
+++ b/kmymoney2/dialogs/kmymoneysplittable.cpp
@@ -554,7 +554,7 @@ void kMyMoneySplitTable::slotUpdateData(const MyMoneyTransaction& t)
try {
colText = MyMoneyFile::instance()->accountToCategory((*it).accountId());
} catch(MyMoneyException *e) {
- qDebug("Unexpected exception in kMyMoneySplitTable::slotUpdateData()");
+ tqDebug("Unexpected exception in kMyMoneySplitTable::slotUpdateData()");
delete e;
}
}
@@ -636,7 +636,7 @@ void kMyMoneySplitTable::slotDuplicateSplit(void)
m_transaction.addSplit(split);
emit transactionChanged(m_transaction);
} catch(MyMoneyException *e) {
- qDebug("Cannot duplicate split: %s", e->what().latin1());
+ tqDebug("Cannot duplicate split: %s", e->what().latin1());
delete e;
}
}
@@ -662,7 +662,7 @@ void kMyMoneySplitTable::slotDeleteSplit(void)
setCurrentCell(m_currentRow, 0);
emit transactionChanged(m_transaction);
} catch(MyMoneyException *e) {
- qDebug("Cannot remove split: %s", e->what().latin1());
+ tqDebug("Cannot remove split: %s", e->what().latin1());
delete e;
}
}
@@ -781,7 +781,7 @@ void kMyMoneySplitTable::endEdit(bool keyBoardDriven)
}
emit transactionChanged(m_transaction);
} catch(MyMoneyException *e) {
- qDebug("Cannot add/modify split: %s", e->what().latin1());
+ tqDebug("Cannot add/modify split: %s", e->what().latin1());
delete e;
}
}
diff --git a/kmymoney2/dialogs/knewaccountdlg.cpp b/kmymoney2/dialogs/knewaccountdlg.cpp
index 5f085aa..0f54394 100644
--- a/kmymoney2/dialogs/knewaccountdlg.cpp
+++ b/kmymoney2/dialogs/knewaccountdlg.cpp
@@ -345,7 +345,7 @@ KNewAccountDlg::KNewAccountDlg(const MyMoneyAccount& account, bool isEditing, bo
}
catch (MyMoneyException *e)
{
- qDebug("exception in init for account dialog: %s", e->what().latin1());
+ tqDebug("exception in init for account dialog: %s", e->what().latin1());
delete e;
}
@@ -502,7 +502,7 @@ void KNewAccountDlg::okClicked()
}
catch (MyMoneyException *e)
{
- qDebug("Exception in account institution set: %s", e->what().latin1());
+ tqDebug("Exception in account institution set: %s", e->what().latin1());
delete e;
}
}
@@ -700,7 +700,7 @@ const MyMoneyAccount& KNewAccountDlg::parentAccount(void)
m_parentAccount = file->equity();
break;
default:
- qDebug("Seems we have an account that hasn't been mapped to the top five");
+ tqDebug("Seems we have an account that hasn't been mapped to the top five");
if(m_categoryEditor)
m_parentAccount = file->income();
else
@@ -916,7 +916,7 @@ void KNewAccountDlg::initParentWidget(TQString parentId, const TQString& account
}
catch (MyMoneyException *e)
{
- qDebug("Exception in assets account refresh: %s", e->what().latin1());
+ tqDebug("Exception in assets account refresh: %s", e->what().latin1());
delete e;
}
@@ -974,7 +974,7 @@ void KNewAccountDlg::slotSelectionChanged(TQListViewItem *item)
{
MyMoneyFile *file = MyMoneyFile::instance();
- //qDebug("Selected account id: %s", accountItem->accountID().data());
+ //tqDebug("Selected account id: %s", accountItem->accountID().data());
m_parentAccount = file->account(accountItem->id());
m_subAccountLabel->setText(i18n("Is a sub account of %1").arg(m_parentAccount.name()));
if(m_qlistviewParentAccounts->isEnabled()) {
@@ -983,7 +983,7 @@ void KNewAccountDlg::slotSelectionChanged(TQListViewItem *item)
}
catch (MyMoneyException *e)
{
- qDebug("This shouldn't happen! : %s", e->what().latin1());
+ tqDebug("This shouldn't happen! : %s", e->what().latin1());
delete e;
}
}
@@ -1054,7 +1054,7 @@ void KNewAccountDlg::slotLoadInstitutions(const TQString& name)
}
catch (MyMoneyException *e)
{
- qDebug("Exception in institution load: %s", e->what().latin1());
+ tqDebug("Exception in institution load: %s", e->what().latin1());
delete e;
}
}
@@ -1109,7 +1109,7 @@ void KNewAccountDlg::slotAccountTypeChanged(const TQString& typeStr)
parentId = file->income().id();
break;
default:
- qWarning("Unknown account group in KNewAccountDlg::slotAccountTypeChanged()");
+ tqWarning("Unknown account group in KNewAccountDlg::slotAccountTypeChanged()");
break;
}
initParentWidget(parentId, TQString());
@@ -1117,7 +1117,7 @@ void KNewAccountDlg::slotAccountTypeChanged(const TQString& typeStr)
}
} catch(MyMoneyException *e) {
delete e;
- qWarning("Unexpected exception in KNewAccountDlg::slotAccountTypeChanged()");
+ tqWarning("Unexpected exception in KNewAccountDlg::slotAccountTypeChanged()");
}
}
diff --git a/kmymoney2/dialogs/knewloanwizard.cpp b/kmymoney2/dialogs/knewloanwizard.cpp
index 87baaf9..105e2d3 100644
--- a/kmymoney2/dialogs/knewloanwizard.cpp
+++ b/kmymoney2/dialogs/knewloanwizard.cpp
@@ -445,7 +445,7 @@ void KNewLoanWizard::updateSummary(void)
MyMoneyAccount acc = MyMoneyFile::instance()->account(sel.first());
m_summaryInterestCategory->setText(acc.name());
} catch(MyMoneyException *e) {
- qWarning("Unable to determine interest category for loan account creation");
+ tqWarning("Unable to determine interest category for loan account creation");
delete e;
}
m_summaryAdditionalFees->setText(m_additionalCost->text());
@@ -459,7 +459,7 @@ void KNewLoanWizard::updateSummary(void)
MyMoneyAccount acc = MyMoneyFile::instance()->account(sel.first());
m_summaryPaymentAccount->setText(acc.name());
} catch(MyMoneyException *e) {
- qWarning("Unable to determine payment account for loan account creation");
+ tqWarning("Unable to determine payment account for loan account creation");
delete e;
}
}
@@ -789,7 +789,7 @@ int KNewLoanWizard::calculateLoan(void)
if((m_borrowButton->isChecked() && val < 0 && fabsl(val) > fabsl(calc.payment()))
|| (m_lendButton->isChecked() && val > 0 && fabs(val) > fabs(calc.payment()))) {
// case a)
- qDebug("Future Value is %Lf", val);
+ tqDebug("Future Value is %Lf", val);
throw new MYMONEYEXCEPTION("incorrect fincancial calculation");
} else if((m_borrowButton->isChecked() && val < 0 && fabsl(val) <= fabsl(calc.payment()))
diff --git a/kmymoney2/dialogs/kreconciledlg.cpp b/kmymoney2/dialogs/kreconciledlg.cpp
index 9c18d68..a3d0553 100644
--- a/kmymoney2/dialogs/kreconciledlg.cpp
+++ b/kmymoney2/dialogs/kreconciledlg.cpp
@@ -273,7 +273,7 @@ void KReconcileDlg::finishClicked(void)
void KReconcileDlg::updateData(void)
{
// Simply reload the list clearing the status.
- qDebug("In updateData");
+ tqDebug("In updateData");
m_reconciledTransactions.clear();
m_debitsTQList.clear();
m_creditsTQList.clear();
diff --git a/kmymoney2/dialogs/ksplittransactiondlg.cpp b/kmymoney2/dialogs/ksplittransactiondlg.cpp
index 907f927..a31693a 100644
--- a/kmymoney2/dialogs/ksplittransactiondlg.cpp
+++ b/kmymoney2/dialogs/ksplittransactiondlg.cpp
@@ -221,7 +221,7 @@ int KSplitTransactionDlg::exec(void)
break;
case 2: // distribute difference
- qDebug("distribution of difference not yet supported in KSplitTransactionDlg::slotFinishClicked()");
+ tqDebug("distribution of difference not yet supported in KSplitTransactionDlg::slotFinishClicked()");
break;
case 3: // leave unassigned
diff --git a/kmymoney2/dialogs/settings/ksettingshome.cpp b/kmymoney2/dialogs/settings/ksettingshome.cpp
index 44bd10b..afdb28b 100644
--- a/kmymoney2/dialogs/settings/ksettingshome.cpp
+++ b/kmymoney2/dialogs/settings/ksettingshome.cpp
@@ -105,7 +105,7 @@ void KSettingsHome::slotLoadItems(void)
if(last)
item->moveItem(last);
- // qDebug("Adding %s", item->text(0).latin1());
+ // tqDebug("Adding %s", item->text(0).latin1());
item->setOn(enabled);
if(item->width(fm, m_homePageList, 0) > w)
w = item->width(fm, m_homePageList, 0);
diff --git a/kmymoney2/dialogs/transactioneditor.cpp b/kmymoney2/dialogs/transactioneditor.cpp
index cdc111a..bffcbe8 100644
--- a/kmymoney2/dialogs/transactioneditor.cpp
+++ b/kmymoney2/dialogs/transactioneditor.cpp
@@ -281,7 +281,7 @@ int TransactionEditor::slotEditSplits(void)
*m_transactionPtr = k;
}
} catch(MyMoneyException *e) {
- qDebug("Unable to update commodity to second splits currency in %s: '%s'", m_transaction.id().data(), e->what().data());
+ tqDebug("Unable to update commodity to second splits currency in %s: '%s'", m_transaction.id().data(), e->what().data());
delete e;
}
@@ -357,7 +357,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
(*it_t).transaction().modifySplit(splitB);
} catch(MyMoneyException *e) {
- qDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
delete e;
}
break;
@@ -394,7 +394,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
(*it_t).transaction().modifySplit(splitB);
} catch(MyMoneyException *e) {
- qDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug("Unable to update commodity to second splits currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
delete e;
}
break;
@@ -440,7 +440,7 @@ bool TransactionEditor::fixTransactionCommodity(const MyMoneyAccount& account)
}
}
} catch(MyMoneyException *e) {
- qDebug("Unable to update commodity of split currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
+ tqDebug("Unable to update commodity of split currency in %s: '%s'", (*it_t).transaction().id().data(), e->what().data());
delete e;
}
break;
@@ -707,7 +707,7 @@ bool TransactionEditor::enterTransactions(TQString& newId, bool askForSchedule,
}
}
} catch(MyMoneyException * e) {
- qDebug("Unable to store transaction within engine: %s", e->what().latin1());
+ tqDebug("Unable to store transaction within engine: %s", e->what().latin1());
delete e;
newTransactionCreated = false;
}
@@ -748,7 +748,7 @@ bool StdTransactionEditor::eventFilter(TQObject* o, TQEvent* e)
if((e->type() == TQEvent::FocusOut)
&& (haveWidget("payee") == dynamic_cast<TQWidget*>(o))) {
// loosing the focus on the payee widget?
- qDebug("Loosing focus on payee");
+ tqDebug("Loosing focus on payee");
KMyMoneyPayeeCombo* p = dynamic_cast<KMyMoneyPayeeCombo*>(haveWidget("payee"));
if(!p->selectedItem().isEmpty())
slotUpdatePayee(p->selectedItem());
@@ -1421,7 +1421,7 @@ void StdTransactionEditor::slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirectio
{
TQLabel* categoryLabel = dynamic_cast<TQLabel*>(haveWidget("category-label"));
- // qDebug("Update cashflow to %d", dir);
+ // tqDebug("Update cashflow to %d", dir);
if(categoryLabel) {
TabBar* tabbar = dynamic_cast<TabBar*>(haveWidget("tabbar"));
if(categoryLabel->text() != i18n("Category")) {
@@ -1443,7 +1443,7 @@ void StdTransactionEditor::slotUpdateCashFlow(KMyMoneyRegister::CashFlowDirectio
void StdTransactionEditor::slotUpdateCategory(const TQString& id)
{
TQLabel *categoryLabel = dynamic_cast<TQLabel*>(haveWidget("category-label"));
- // qDebug("Update category to %s", id.data());
+ // tqDebug("Update category to %s", id.data());
if(categoryLabel) {
TabBar* tabbar = dynamic_cast<TabBar*>(haveWidget("tabbar"));
@@ -1522,7 +1522,7 @@ void StdTransactionEditor::slotUpdateDeposit(const TQString& txt)
void StdTransactionEditor::slotUpdateAmount(const TQString& txt)
{
- // qDebug("Update amount to %s", txt.data());
+ // tqDebug("Update amount to %s", txt.data());
MyMoneyMoney val(txt);
updateAmount(val);
updateVAT(true);
@@ -1645,7 +1645,7 @@ bool StdTransactionEditor::addVatSplit(MyMoneyTransaction& tr, const MyMoneyMone
const MyMoneySecurity& csec = file->security(category.currencyId());
const MyMoneySecurity& vsec = file->security(vatAcc.currencyId());
if(asec.id() != csec.id() || asec.id() != vsec.id()) {
- qDebug("Auto VAT assignment only works if all three accounts use the same currency.");
+ tqDebug("Auto VAT assignment only works if all three accounts use the same currency.");
return false;
}
@@ -1657,7 +1657,7 @@ bool StdTransactionEditor::addVatSplit(MyMoneyTransaction& tr, const MyMoneyMone
tax.setAccountId(vatAcc.id());
- // qDebug("vat amount is '%s'", category.value("VatAmount").latin1());
+ // tqDebug("vat amount is '%s'", category.value("VatAmount").latin1());
if(category.value("VatAmount").lower() != TQString("net")) {
// split value is the gross value
gv = amount;
@@ -1857,7 +1857,7 @@ int StdTransactionEditor::slotEditSplits(void)
}
}
if(!deposit || !payment) {
- qDebug("Internal error: deposit(%p) & payment(%p) widgets not found but required", deposit, payment);
+ tqDebug("Internal error: deposit(%p) & payment(%p) widgets not found but required", deposit, payment);
return rc;
}
}
diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp
index e47cc76..289933d 100644
--- a/kmymoney2/kmymoney2.cpp
+++ b/kmymoney2/kmymoney2.cpp
@@ -518,7 +518,7 @@ KAction* KMyMoney2App::action(const TQString& actionName) const
if(p)
return p;
- qWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning("Action with name '%s' not found!", actionName.latin1());
return &dummyAction;
}
@@ -532,13 +532,13 @@ KToggleAction* KMyMoney2App::toggleAction(const TQString& actionName) const
if(q) {
KToggleAction* p = dynamic_cast<KToggleAction*>(q);
if(!p) {
- qWarning("Action '%s' is not of type KToggleAction", actionName.latin1());
+ tqWarning("Action '%s' is not of type KToggleAction", actionName.latin1());
p = &dummyAction;
}
return p;
}
- qWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning("Action with name '%s' not found!", actionName.latin1());
return &dummyAction;
}
@@ -648,7 +648,7 @@ void KMyMoney2App::slotPerformanceTest(void)
TQTime timer;
MyMoneyAccount acc;
- qDebug("--- Starting performance tests ---");
+ tqDebug("--- Starting performance tests ---");
// AccountList
MyMoneyFile::instance()->preloadCache();
@@ -939,7 +939,7 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url)
KMyMoney2App_stub* remoteApp = new KMyMoney2App_stub(kapp->dcopClient(), (*it), "kmymoney2app");
TQString remoteFile = remoteApp->filename();
if(!remoteApp->ok()) {
- qDebug("DCOP error while calling app->filename()");
+ tqDebug("DCOP error while calling app->filename()");
} else {
if(remoteFile == url.url()) {
duplicate = true;
@@ -2036,7 +2036,7 @@ void KMyMoney2App::slotProcessExited(void)
ready();
}
} else {
- qDebug("cp exit status is %d", proc.exitStatus());
+ tqDebug("cp exit status is %d", proc.exitStatus());
m_backupResult = 1;
KMessageBox::information(this, i18n("Error copying file to device"), i18n("Backup"));
@@ -2073,7 +2073,7 @@ void KMyMoney2App::slotProcessExited(void)
break;
default:
- qWarning("Unknown state for backup operation!");
+ tqWarning("Unknown state for backup operation!");
progressCallback(-1, -1, TQString());
ready();
break;
@@ -2614,7 +2614,7 @@ void KMyMoney2App::slotManualPriceUpdate(void)
// The dialog takes care of adding the price if necessary
calc.exec();
} catch(MyMoneyException* e) {
- qDebug("Error in price update: %s", e->what().data());
+ tqDebug("Error in price update: %s", e->what().data());
delete e;
}
}
@@ -3059,13 +3059,13 @@ void KMyMoney2App::slotAccountEdit(void)
file->addSchedule(sch);
ft.commit();
} catch (MyMoneyException *f) {
- qDebug("Cannot add schedule: '%s'", f->what().data());
+ tqDebug("Cannot add schedule: '%s'", f->what().data());
delete f;
}
delete e;
}
} catch(MyMoneyException *e) {
- qDebug("Unable to modify account %s: '%s'", m_selectedAccount.name().data(),
+ tqDebug("Unable to modify account %s: '%s'", m_selectedAccount.name().data(),
e->what().data());
delete e;
}
@@ -3145,7 +3145,7 @@ void KMyMoney2App::slotAccountReconcileStart(void)
ft.commit();
} catch(MyMoneyException *e) {
- qWarning("interest transaction not stored: '%s'", e->what().data());
+ tqWarning("interest transaction not stored: '%s'", e->what().data());
delete e;
}
@@ -3257,7 +3257,7 @@ void KMyMoney2App::slotAccountReconcileFinish(void)
transactionList);
} catch(MyMoneyException *e) {
- qDebug("Unexpected exception when setting cleared to reconcile");
+ tqDebug("Unexpected exception when setting cleared to reconcile");
delete e;
}
}
@@ -3288,7 +3288,7 @@ void KMyMoney2App::slotAccountReconcilePostpone(void)
m_reconciliationAccount = MyMoneyAccount();
slotUpdateActions();
} catch(MyMoneyException *e) {
- qDebug("Unexpected exception when setting last reconcile info into account");
+ tqDebug("Unexpected exception when setting last reconcile info into account");
delete e;
ft.rollback();
m_reconciliationAccount = file->account(m_reconciliationAccount.id());
@@ -4456,7 +4456,7 @@ void KMyMoney2App::slotTransactionsNew(void)
void KMyMoney2App::slotTransactionsEdit(void)
{
- // qDebug("KMyMoney2App::slotTransactionsEdit()");
+ // tqDebug("KMyMoney2App::slotTransactionsEdit()");
// since we jump here via code, we have to make sure to react only
// if the action is enabled
if(kmymoney2->action("transaction_edit")->isEnabled()) {
@@ -4513,7 +4513,7 @@ void KMyMoney2App::slotTransactionsCancel(void)
if(kmymoney2->action("transaction_cancel")->isEnabled()) {
// make sure, we block the enter function
action("transaction_enter")->setEnabled(false);
- // qDebug("KMyMoney2App::slotTransactionsCancel");
+ // tqDebug("KMyMoney2App::slotTransactionsCancel");
deleteTransactionEditor();
slotUpdateActions();
}
@@ -4524,7 +4524,7 @@ void KMyMoney2App::slotTransactionsEnter(void)
// since we jump here via code, we have to make sure to react only
// if the action is enabled
if(kmymoney2->action("transaction_enter")->isEnabled()) {
- // qDebug("KMyMoney2App::slotTransactionsEnter");
+ // tqDebug("KMyMoney2App::slotTransactionsEnter");
if(m_transactionEditor) {
TQString accountId = m_selectedAccount.id();
TQString newId;
@@ -4550,7 +4550,7 @@ void KMyMoney2App::slotTransactionsCancelOrEnter(bool& okToSelect)
if(!oneTime) {
oneTime = true;
TQString dontShowAgain = "CancelOrEditTransaction";
- // qDebug("KMyMoney2App::slotCancelOrEndEdit");
+ // tqDebug("KMyMoney2App::slotCancelOrEndEdit");
if(m_transactionEditor) {
if(KMyMoneyGlobalSettings::focusChangeIsEnter() && kmymoney2->action("transaction_enter")->isEnabled()) {
slotTransactionsEnter();
@@ -4788,7 +4788,7 @@ void KMyMoney2App::slotTransactionAssignNumber(void)
void KMyMoney2App::slotTransactionCombine(void)
{
- qDebug("slotTransactionCombine() not implemented yet");
+ tqDebug("slotTransactionCombine() not implemented yet");
}
void KMyMoney2App::slotMoveToAccount(const TQString& id)
@@ -5045,7 +5045,7 @@ void KMyMoney2App::slotShowScheduleContextMenu(void)
void KMyMoney2App::slotShowAccountContextMenu(const MyMoneyObject& obj)
{
-// qDebug("KMyMoney2App::slotShowAccountContextMenu");
+// tqDebug("KMyMoney2App::slotShowAccountContextMenu");
if(typeid(obj) != typeid(MyMoneyAccount))
return;
@@ -5461,7 +5461,7 @@ void KMyMoney2App::slotUpdateActions(void)
action("investment_online_price_update")->setEnabled(true);
} catch(MyMoneyException *e) {
- qDebug("Error retrieving security for investment %s: %s", m_selectedInvestment.name().data(), e->what().data());
+ tqDebug("Error retrieving security for investment %s: %s", m_selectedInvestment.name().data(), e->what().data());
delete e;
}
if(m_selectedInvestment.isClosed())
@@ -5622,7 +5622,7 @@ void KMyMoney2App::slotSelectInstitution(const MyMoneyObject& institution)
return;
m_selectedInstitution = dynamic_cast<const MyMoneyInstitution&>(institution);
- // qDebug("slotSelectInstitution('%s')", m_selectedInstitution.name().data());
+ // tqDebug("slotSelectInstitution('%s')", m_selectedInstitution.name().data());
slotUpdateActions();
emit institutionSelected(m_selectedInstitution);
}
@@ -5637,7 +5637,7 @@ void KMyMoney2App::slotSelectAccount(const MyMoneyObject& obj)
if(!acc.isInvest())
m_selectedAccount = acc;
- // qDebug("slotSelectAccount('%s')", m_selectedAccount.name().data());
+ // tqDebug("slotSelectAccount('%s')", m_selectedAccount.name().data());
slotUpdateActions();
emit accountSelected(m_selectedAccount);
}
@@ -5647,7 +5647,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj)
if(typeid(obj) != typeid(MyMoneyAccount))
return;
- // qDebug("slotSelectInvestment('%s')", account.name().data());
+ // tqDebug("slotSelectInvestment('%s')", account.name().data());
m_selectedInvestment = MyMoneyAccount();
const MyMoneyAccount& acc = dynamic_cast<const MyMoneyAccount&>(obj);
if(acc.isInvest())
@@ -5659,7 +5659,7 @@ void KMyMoney2App::slotSelectInvestment(const MyMoneyObject& obj)
void KMyMoney2App::slotSelectSchedule(const MyMoneySchedule& schedule)
{
- // qDebug("slotSelectSchedule('%s')", schedule.name().data());
+ // tqDebug("slotSelectSchedule('%s')", schedule.name().data());
m_selectedSchedule = schedule;
slotUpdateActions();
emit scheduleSelected(m_selectedSchedule);
@@ -6198,7 +6198,7 @@ void KMyMoney2App::Private::unlinkStatementXML(void)
{
TQDir d("/home/thb", "kmm-statement*");
for(int i=0; i < d.count(); ++i) {
- qDebug("Remove %s", d[i].data());
+ tqDebug("Remove %s", d[i].data());
d.remove(TQString("/home/thb/%1").arg(d[i]));
}
statementXMLindex = 0;
diff --git a/kmymoney2/kmymoneyutils.cpp b/kmymoney2/kmymoneyutils.cpp
index 4516413..c2e41ca 100644
--- a/kmymoney2/kmymoneyutils.cpp
+++ b/kmymoney2/kmymoneyutils.cpp
@@ -281,7 +281,7 @@ TQString KMyMoneyUtils::findResource(const char* type, const TQString& filename)
// check that the placeholder is present
if(!filename.find("%1")) {
- qWarning("%%1 not found in '%s'", filename.latin1());
+ tqWarning("%%1 not found in '%s'", filename.latin1());
return filename;
}
@@ -293,7 +293,7 @@ TQString KMyMoneyUtils::findResource(const char* type, const TQString& filename)
rc = KGlobal::dirs()->findResource(type, mask.arg(language));
}
if(rc.isEmpty()) {
- // qDebug(TQString("html/home_%1.html not found").arg(country).latin1());
+ // tqDebug(TQString("html/home_%1.html not found").arg(country).latin1());
rc = KGlobal::dirs()->findResource(type, mask.arg(country));
}
if(rc.isEmpty()) {
@@ -301,7 +301,7 @@ TQString KMyMoneyUtils::findResource(const char* type, const TQString& filename)
}
if(rc.isEmpty()) {
- qWarning("No resource found for (%s,%s)", type, filename.latin1());
+ tqWarning("No resource found for (%s,%s)", type, filename.latin1());
}
return rc;
}
@@ -432,7 +432,7 @@ MyMoneyTransaction KMyMoneyUtils::scheduledTransaction(const MyMoneySchedule& sc
calculateAutoLoan(schedule, t, TQMap<TQString, MyMoneyMoney>());
}
} catch (MyMoneyException* e) {
- qDebug("Unable to load schedule details for '%s' during transaction match: %s", schedule.name().data(), e->what().data());
+ tqDebug("Unable to load schedule details for '%s' during transaction match: %s", schedule.name().data(), e->what().data());
delete e;
}
diff --git a/kmymoney2/main.cpp b/kmymoney2/main.cpp
index 63f8ce4..01f807b 100644
--- a/kmymoney2/main.cpp
+++ b/kmymoney2/main.cpp
@@ -155,7 +155,7 @@ int main(int argc, char *argv[])
TQCString language = args->getOption("lang");
if(!language.isEmpty()) {
if(!KGlobal::locale()->setLanguage(language)) {
- qWarning("Unable to select language '%s'. This has one of two reasons:\n\ta) the standard KDE message catalogue is not installed\n\tb) the KMyMoney message catalogue is not installed", language.data());
+ tqWarning("Unable to select language '%s'. This has one of two reasons:\n\ta) the standard KDE message catalogue is not installed\n\tb) the KMyMoney message catalogue is not installed", language.data());
}
}
@@ -212,7 +212,7 @@ int main(int argc, char *argv[])
arg << url.path();
arg << kapp->startupId();
if (!client->send(primary, "kmymoney2app", "webConnect(TQString,TQCString)",data))
- qDebug("Unable to launch WebConnect via DCOP.");
+ tqDebug("Unable to launch WebConnect via DCOP.");
// Before we delete the application, we make sure that we destroy all
// widgets by running the event loop for some time to catch all those
@@ -233,7 +233,7 @@ int main(int argc, char *argv[])
}
}
} else {
- qDebug("DCOP registration failed. Some functions are not available.");
+ tqDebug("DCOP registration failed. Some functions are not available.");
}
kmymoney2->show();
@@ -300,7 +300,7 @@ void timestamp(char *txt)
{
if(timersOn)
{
- qDebug("Time(%s): %d", txt, timer.elapsed());
+ tqDebug("Time(%s): %d", txt, timer.elapsed());
}
}
@@ -308,7 +308,7 @@ void timetrace(const char *txt)
{
if(timersOn)
{
- qDebug("Timer(%s): %d elapsed", txt, timer.elapsed());
+ tqDebug("Timer(%s): %d elapsed", txt, timer.elapsed());
timer.restart();
}
}
diff --git a/kmymoney2/mymoney/mymoneyaccount.cpp b/kmymoney2/mymoney/mymoneyaccount.cpp
index c83e834..569a9ae 100644
--- a/kmymoney2/mymoney/mymoneyaccount.cpp
+++ b/kmymoney2/mymoney/mymoneyaccount.cpp
@@ -62,7 +62,7 @@ MyMoneyAccount::MyMoneyAccount(const TQDomElement& node) :
setName(node.attribute("name"));
- // qDebug("Reading information for account %s", acc.name().data());
+ // tqDebug("Reading information for account %s", acc.name().data());
setParentAccountId(TQStringEmpty(node.attribute("parentaccount")));
setLastModified(stringToDate(TQStringEmpty(node.attribute("lastmodified"))));
@@ -93,7 +93,7 @@ MyMoneyAccount::MyMoneyAccount(const TQDomElement& node) :
if(bOK) {
setAccountType(static_cast<MyMoneyAccount::accountTypeE>(type));
} else {
- qWarning("XMLREADER: Account %s had invalid or no account type information.", name().data());
+ tqWarning("XMLREADER: Account %s had invalid or no account type information.", name().data());
}
if(node.hasAttribute("openingbalance")) {
@@ -105,7 +105,7 @@ MyMoneyAccount::MyMoneyAccount(const TQDomElement& node) :
setDescription(node.attribute("description"));
m_id = TQStringEmpty(node.attribute("id"));
- // qDebug("Account %s has id of %s, type of %d, parent is %s.", acc.name().data(), id.data(), type, acc.parentAccountId().data());
+ // tqDebug("Account %s has id of %s, type of %d, parent is %s.", acc.name().data(), id.data(), type, acc.parentAccountId().data());
// Process any Sub-Account information found inside the account entry.
m_accountList.clear();
diff --git a/kmymoney2/mymoney/mymoneyexception.cpp b/kmymoney2/mymoney/mymoneyexception.cpp
index 4ee0970..47d32fc 100644
--- a/kmymoney2/mymoney/mymoneyexception.cpp
+++ b/kmymoney2/mymoney/mymoneyexception.cpp
@@ -24,7 +24,7 @@
MyMoneyException::MyMoneyException(const TQString& msg, const TQString& file, const unsigned long line)
{
- // qDebug("MyMoneyException(%s,%s,%d)", msg.data(), file.data(), line);
+ // tqDebug("MyMoneyException(%s,%s,%d)", msg.data(), file.data(), line);
m_msg = msg;
m_file = file;
m_line = line;
diff --git a/kmymoney2/mymoney/mymoneyfile.cpp b/kmymoney2/mymoney/mymoneyfile.cpp
index c59d577..2b7fdbc 100644
--- a/kmymoney2/mymoney/mymoneyfile.cpp
+++ b/kmymoney2/mymoney/mymoneyfile.cpp
@@ -739,7 +739,7 @@ const MyMoneyAccount MyMoneyFile::openingBalanceAccount(const MyMoneySecurity& s
ft.commit();
} catch(MyMoneyException* e) {
- qDebug("Unable to create opening balance account for security %s", security.id().data());
+ tqDebug("Unable to create opening balance account for security %s", security.id().data());
delete e;
}
return acc;
@@ -1099,10 +1099,10 @@ void MyMoneyFile::warningMissingRate(const TQString& fromId, const TQString& toI
try {
from = security(fromId);
to = security(toId);
- qWarning("Missing price info for conversion from %s to %s", from.name().latin1(), to.name().latin1());
+ tqWarning("Missing price info for conversion from %s to %s", from.name().latin1(), to.name().latin1());
} catch(MyMoneyException *e) {
- qFatal("Missing security caught in MyMoneyFile::warningMissingRate(): %s(%ld) %s", e->file().data(), e->line(), e->what().data());
+ tqFatal("Missing security caught in MyMoneyFile::warningMissingRate(): %s(%ld) %s", e->file().data(), e->line(), e->what().data());
delete e;
}
}
@@ -1399,7 +1399,7 @@ const TQStringList MyMoneyFile::consistencyCheck(void)
toplevel = equity();
break;
default:
- qWarning("%s:%d This should never happen!", __FILE__ , __LINE__);
+ tqWarning("%s:%d This should never happen!", __FILE__ , __LINE__);
break;
}
@@ -1810,7 +1810,7 @@ TQString MyMoneyFile::createCategory(const MyMoneyAccount& base, const TQString&
}
catch (MyMoneyException *e)
{
- qDebug("Unable to add account %s, %s, %s: %s",
+ tqDebug("Unable to add account %s, %s, %s: %s",
categoryAccount.name().latin1(),
parent.name().latin1(),
categoryText.latin1(),
diff --git a/kmymoney2/mymoney/mymoneymoney.cpp b/kmymoney2/mymoney/mymoneymoney.cpp
index 2d380d3..6bbe013 100644
--- a/kmymoney2/mymoney/mymoneymoney.cpp
+++ b/kmymoney2/mymoney/mymoneymoney.cpp
@@ -156,10 +156,10 @@ MyMoneyMoney::MyMoneyMoney(const TQString& pszAmount)
negChars += "()";
}
validChars += negChars;
- // qDebug("0: '%s'", validChars.data());
+ // tqDebug("0: '%s'", validChars.data());
TQRegExp invChars(TQString("[^%1]").arg(validChars));
- // qDebug("1: '%s'", res.data());
+ // tqDebug("1: '%s'", res.data());
res.remove(invChars);
TQRegExp negCharSet(TQString("[%1]").arg(negChars));
@@ -168,10 +168,10 @@ MyMoneyMoney::MyMoneyMoney(const TQString& pszAmount)
isNegative = true;
res.remove(negCharSet);
}
- // qDebug("2: '%s' %s", res.data(), isNegative ? "(-)" : "");
+ // tqDebug("2: '%s' %s", res.data(), isNegative ? "(-)" : "");
int pos;
- // qDebug("3: '%s'", res.data());
+ // tqDebug("3: '%s'", res.data());
if((pos = res.find(_decimalSeparator)) != -1) {
// make sure, we get the denominator right
m_denom = precToDenom(res.length() - pos - 1);
@@ -179,7 +179,7 @@ MyMoneyMoney::MyMoneyMoney(const TQString& pszAmount)
// now remove the decimal symbol
res.remove(pos, 1);
}
- // qDebug("4: '%s'", res.data());
+ // tqDebug("4: '%s'", res.data());
if(res.length() > 0)
m_num = atoll( res );
@@ -353,13 +353,13 @@ TQDataStream &operator<<(TQDataStream &s, const MyMoneyMoney &_money)
switch(MyMoneyMoney::_fileVersion) {
case MyMoneyMoney::FILE_4_BYTE_VALUE:
if(money.m_num & 0xffffffff00000000LL)
- qWarning("Lost data while writing out MyMoneyMoney object using deprecated 4 byte writer");
+ tqWarning("Lost data while writing out MyMoneyMoney object using deprecated 4 byte writer");
s << static_cast<TQ_INT32> (money.m_num & 0xffffffff);
break;
default:
- qDebug("Unknown file version while writing MyMoneyMoney object! Use FILE_8_BYTE_VALUE");
+ tqDebug("Unknown file version while writing MyMoneyMoney object! Use FILE_8_BYTE_VALUE");
// tricky fall through here
case MyMoneyMoney::FILE_8_BYTE_VALUE:
@@ -381,7 +381,7 @@ TQDataStream &operator>>(TQDataStream &s, MyMoneyMoney &money)
break;
default:
- qDebug("Unknown file version while writing MyMoneyMoney object! FILE_8_BYTE_VALUE assumed");
+ tqDebug("Unknown file version while writing MyMoneyMoney object! FILE_8_BYTE_VALUE assumed");
// tricky fall through here
case MyMoneyMoney::FILE_8_BYTE_VALUE:
@@ -724,7 +724,7 @@ const MyMoneyMoney MyMoneyMoney::convert(const signed64 _denom, const roundingMe
break;
case RndNever:
- qWarning("MyMoneyMoney: have remainder \"%Ld/%Ld\"->convert(%Ld, %d)",
+ tqWarning("MyMoneyMoney: have remainder \"%Ld/%Ld\"->convert(%Ld, %d)",
m_num, m_denom, _denom, how);
break;
}
diff --git a/kmymoney2/mymoney/mymoneyobjectcontainer.cpp b/kmymoney2/mymoney/mymoneyobjectcontainer.cpp
index 9b54b1f..7517e17 100644
--- a/kmymoney2/mymoney/mymoneyobjectcontainer.cpp
+++ b/kmymoney2/mymoney/mymoneyobjectcontainer.cpp
@@ -190,7 +190,7 @@ void MyMoneyObjectContainer::refresh(const TQString& id)
const MyMoneySchedule& s = m_storage->schedule(id);
m_map[id] = new MyMoneySchedule(s);
} else {
- qWarning("Ooops, should preload an unknown object with id '%s'", id.data());
+ tqWarning("Ooops, should preload an unknown object with id '%s'", id.data());
}
return;
}
diff --git a/kmymoney2/mymoney/mymoneyprice.cpp b/kmymoney2/mymoney/mymoneyprice.cpp
index 77054b5..a65ba65 100644
--- a/kmymoney2/mymoney/mymoneyprice.cpp
+++ b/kmymoney2/mymoney/mymoneyprice.cpp
@@ -56,7 +56,7 @@ MyMoneyPrice::MyMoneyPrice(const TQString& from, const TQString& to, const TQDom
if(!m_rate.isZero())
m_invRate = MyMoneyMoney(1,1) / m_rate;
else
- qDebug("Price with zero value loaded");
+ tqDebug("Price with zero value loaded");
}
MyMoneyPrice::MyMoneyPrice(const TQString& from, const TQString& to, const TQDate& date, const MyMoneyMoney& rate, const TQString& source) :
@@ -69,7 +69,7 @@ MyMoneyPrice::MyMoneyPrice(const TQString& from, const TQString& to, const TQDat
if(!m_rate.isZero())
m_invRate = MyMoneyMoney(1,1) / m_rate;
else
- qDebug("Price with zero value created");
+ tqDebug("Price with zero value created");
}
MyMoneyPrice::~MyMoneyPrice()
diff --git a/kmymoney2/mymoney/mymoneyscheduled.cpp b/kmymoney2/mymoney/mymoneyscheduled.cpp
index a2eb6dd..745160c 100644
--- a/kmymoney2/mymoney/mymoneyscheduled.cpp
+++ b/kmymoney2/mymoney/mymoneyscheduled.cpp
@@ -618,7 +618,7 @@ MyMoneyAccount MyMoneySchedule::account(int cnt) const
if(!cnt)
return acc;
} catch(MyMoneyException *e) {
- qWarning("Schedule '%s' references unknown account '%s'", id().data(), (*it).accountId().data());
+ tqWarning("Schedule '%s' references unknown account '%s'", id().data(), (*it).accountId().data());
delete e;
return MyMoneyAccount();
}
@@ -1062,7 +1062,7 @@ int MyMoneySchedule::eventsPerYear(MyMoneySchedule::occurenceE occurence)
rc = 1;
break;
default:
- qWarning("Occurence not supported by financial calculator");
+ tqWarning("Occurence not supported by financial calculator");
}
return rc;
@@ -1120,7 +1120,7 @@ int MyMoneySchedule::daysBetweenEvents(MyMoneySchedule::occurenceE occurence)
rc = 360;
break;
default:
- qWarning("Occurence not supported by financial calculator");
+ tqWarning("Occurence not supported by financial calculator");
}
return rc;
diff --git a/kmymoney2/mymoney/mymoneysubject.cpp b/kmymoney2/mymoney/mymoneysubject.cpp
index 37991d0..d7a4c40 100644
--- a/kmymoney2/mymoney/mymoneysubject.cpp
+++ b/kmymoney2/mymoney/mymoneysubject.cpp
@@ -50,7 +50,7 @@ void MyMoneySubject::notify(const TQString& id)
for (i = ptrList.first(); i != 0; i = ptrList.next()) {
// only call the observer if it did not detach in the meantime
if(m_observers.findRef(i) != -1) {
- // qDebug("call observer @ 0x%08lX with '%s'", (unsigned long)i, id.data());
+ // tqDebug("call observer @ 0x%08lX with '%s'", (unsigned long)i, id.data());
i->update(id);
}
}
diff --git a/kmymoney2/mymoney/mymoneytransaction.cpp b/kmymoney2/mymoney/mymoneytransaction.cpp
index a46bb79..cc0f6d2 100644
--- a/kmymoney2/mymoney/mymoneytransaction.cpp
+++ b/kmymoney2/mymoney/mymoneytransaction.cpp
@@ -75,7 +75,7 @@ MyMoneyTransaction::MyMoneyTransaction(const TQDomElement& node, const bool forc
if(!s.accountId().isEmpty())
addSplit(s);
else
- qDebug("Dropped split because it did not have an account id");
+ tqDebug("Dropped split because it did not have an account id");
}
} else if(c.tagName() == "KEYVALUEPAIRS") {
diff --git a/kmymoney2/mymoney/mymoneytransactionfilter.cpp b/kmymoney2/mymoney/mymoneytransactionfilter.cpp
index d80b8ac..2ef08e3 100644
--- a/kmymoney2/mymoney/mymoneytransactionfilter.cpp
+++ b/kmymoney2/mymoney/mymoneytransactionfilter.cpp
@@ -272,7 +272,7 @@ bool MyMoneyTransactionFilter::match(const MyMoneyTransaction& transaction)
m_matchingSplits.clear();
- // qDebug("T: %s", transaction.id().data());
+ // tqDebug("T: %s", transaction.id().data());
// if no filter is set, we can savely return a match
// if we should report all splits, then we collect them
if(!m_filterSet.allFilter) {
@@ -372,7 +372,7 @@ bool MyMoneyTransactionFilter::match(const MyMoneyTransaction& transaction)
sp = matchingSplits.next();
if(removeSplit) {
- // qDebug(" S: %s", (*it).id().data());
+ // tqDebug(" S: %s", (*it).id().data());
matchingSplits.remove(removeSplit);
}
}
@@ -460,7 +460,7 @@ bool MyMoneyTransactionFilter::match(const MyMoneyTransaction& transaction)
sp = matchingSplits.next();
if(removeSplit) {
- // qDebug(" S: %s", (*it).id().data());
+ // tqDebug(" S: %s", (*it).id().data());
matchingSplits.remove(removeSplit);
}
}
@@ -474,7 +474,7 @@ bool MyMoneyTransactionFilter::match(const MyMoneyTransaction& transaction)
}
}
// all filters passed, I guess we have a match
- // qDebug(" C: %d", m_matchingSplits.count());
+ // tqDebug(" C: %d", m_matchingSplits.count());
return matchingSplits.count() != 0;
}
@@ -835,7 +835,7 @@ bool MyMoneyTransactionFilter::translateDateRange(dateOptionE id, TQDate& start,
end = TQDate::currentDate();
break;
default:
- qFatal("Unknown date identifier %d in MyMoneyTransactionFilter::translateDateRange()", id);
+ tqFatal("Unknown date identifier %d in MyMoneyTransactionFilter::translateDateRange()", id);
rc = false;
break;
}
@@ -845,13 +845,13 @@ bool MyMoneyTransactionFilter::translateDateRange(dateOptionE id, TQDate& start,
void MyMoneyTransactionFilter::removeReference(const TQString& id)
{
if(m_accounts.find(id)) {
- qDebug("%s", (TQString("Remove account '%1' from report").arg(id)).data());
+ tqDebug("%s", (TQString("Remove account '%1' from report").arg(id)).data());
m_accounts.remove(id);
} else if(m_categories.find(id)) {
- qDebug("%s", (TQString("Remove category '%1' from report").arg(id)).data());
+ tqDebug("%s", (TQString("Remove category '%1' from report").arg(id)).data());
m_categories.remove(id);
} else if(m_payees.find(id)) {
- qDebug("%s", (TQString("Remove payee '%1' from report").arg(id)).data());
+ tqDebug("%s", (TQString("Remove payee '%1' from report").arg(id)).data());
m_payees.remove(id);
}
}
diff --git a/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp b/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
index 6324d4c..d4de685 100644
--- a/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
+++ b/kmymoney2/mymoney/storage/mymoneydatabasemgr.cpp
@@ -920,7 +920,7 @@ const MyMoneyMoney MyMoneyDatabaseMgr::balance(const TQString& id, const TQDate&
MyMoneyAccount acc;
TQMap<TQString, MyMoneyAccount> accountList = m_sql->fetchAccounts(/*TQString(id)*/);
//TQMap<TQString, MyMoneyAccount>::const_iterator accpos = accountList.find(id);
- if (date_ != TQDate()) qDebug ("request balance for %s at %s", id.data(), TQString(date_.toString(Qt::ISODate)).latin1());
+ if (date_ != TQDate()) tqDebug ("request balance for %s at %s", id.data(), TQString(date_.toString(Qt::ISODate)).latin1());
// if(!date_.isValid() && MyMoneyFile::instance()->account(id).accountType() != MyMoneyAccount::Stock) {
// if(accountList.find(id) != accountList.end())
// return accountList[id].balance();
@@ -980,7 +980,7 @@ const MyMoneyMoney MyMoneyDatabaseMgr::balance(const TQString& id, const TQDate&
//FIXME: if(m_balanceCache[id].valid == true)
//FIXME: result = m_balanceCache[id].balance;
//FIXME: else
-//FIXME: qDebug("Cache mishit should never happen at this point");
+//FIXME: tqDebug("Cache mishit should never happen at this point");
return result;
}
@@ -1216,10 +1216,10 @@ const TQValueList<MyMoneySchedule> MyMoneyDatabaseMgr::scheduleList(const TQStri
TQMap<TQString, MyMoneySchedule>::ConstIterator pos;
TQValueList<MyMoneySchedule> list;
- // qDebug("scheduleList()");
+ // tqDebug("scheduleList()");
for(pos = scheduleList.begin(); pos != scheduleList.end(); ++pos) {
- // qDebug(" '%s'", (*pos).id().data());
+ // tqDebug(" '%s'", (*pos).id().data());
if(type != MyMoneySchedule::TYPE_ANY) {
if(type != (*pos).type()) {
@@ -1283,7 +1283,7 @@ const TQValueList<MyMoneySchedule> MyMoneyDatabaseMgr::scheduleList(const TQStri
*/
}
- // qDebug("Adding '%s'", (*pos).name().latin1());
+ // tqDebug("Adding '%s'", (*pos).name().latin1());
list << *pos;
}
return list;
@@ -1295,7 +1295,7 @@ const TQValueList<MyMoneySchedule> MyMoneyDatabaseMgr::scheduleListEx( int sched
TQDate startDate,
const TQStringList& accounts) const
{
-// qDebug("scheduleListEx");
+// tqDebug("scheduleListEx");
TQMap<TQString, MyMoneySchedule> scheduleList = m_sql->fetchSchedules();
TQMap<TQString, MyMoneySchedule>::ConstIterator pos;
TQValueList<MyMoneySchedule> list;
@@ -1329,7 +1329,7 @@ const TQValueList<MyMoneySchedule> MyMoneyDatabaseMgr::scheduleListEx( int sched
continue;
}
-// qDebug("\tAdding '%s'", (*pos).name().latin1());
+// tqDebug("\tAdding '%s'", (*pos).name().latin1());
list << *pos;
}
@@ -1581,7 +1581,7 @@ bool MyMoneyDatabaseMgr::isReferenced(const MyMoneyObject& obj, const MyMoneyFil
//TQMap <TQString, MyMoneyTransaction> transactionList = m_sql->fetchTransactions(f);
//rc = (transactionList.end() != std::find_if(transactionList.begin(), transactionList.end(), isReferencedHelper(id)));
//if (rc != m_sql->isReferencedByTransaction(obj.id()))
- // qDebug ("Transaction match inconsistency.");
+ // tqDebug ("Transaction match inconsistency.");
rc = m_sql->isReferencedByTransaction(obj.id());
}
}
diff --git a/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp b/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
index 30fe093..a171431 100644
--- a/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
+++ b/kmymoney2/mymoney/storage/mymoneydatabasemgrtest.cpp
@@ -98,7 +98,7 @@ void MyMoneyDatabaseMgrTest::testCreateDb() {
+ *it + "&mode=single";
KSharedPtr <MyMoneyStorageSql> sql = m->connectToDatabase(m_url);
CPPUNIT_ASSERT(0 != sql);
- //qDebug("Database driver is %s", sql->driverName().ascii());
+ //tqDebug("Database driver is %s", sql->driverName().ascii());
// Clear the database, so there is a fresh start on each run.
if (0 == sql->open(m_url, IO_WriteOnly, true)) {
MyMoneyFile::instance()->attachStorage(m);
@@ -839,19 +839,19 @@ void MyMoneyDatabaseMgrTest::testBalance() {
m->addTransaction(t1);
- //qDebug ("Balance of A000003 is 0 = %s", m->balance("A000003", TQDate()).toString().ascii());
+ //tqDebug ("Balance of A000003 is 0 = %s", m->balance("A000003", TQDate()).toString().ascii());
CPPUNIT_ASSERT(m->balance("A000003", TQDate()).isZero());
- //qDebug ("Balance of A000001 is 1600 = %s", m->balance("A000001", TQDate()).toString().ascii());
+ //tqDebug ("Balance of A000001 is 1600 = %s", m->balance("A000001", TQDate()).toString().ascii());
CPPUNIT_ASSERT(m->totalBalance("A000001", TQDate()) == MyMoneyMoney(1600));
- //qDebug ("Balance of A000006 is -11600 = %s", m->balance("A000006", TQDate(2002,5,9)).toString().ascii());
+ //tqDebug ("Balance of A000006 is -11600 = %s", m->balance("A000006", TQDate(2002,5,9)).toString().ascii());
CPPUNIT_ASSERT(m->balance("A000006", TQDate(2002,5,9)) == MyMoneyMoney(-11600));
- //qDebug ("Balance of A000005 is -100000 = %s", m->balance("A000005", TQDate(2002,5,10)).toString().ascii());
+ //tqDebug ("Balance of A000005 is -100000 = %s", m->balance("A000005", TQDate(2002,5,10)).toString().ascii());
CPPUNIT_ASSERT(m->balance("A000005", TQDate(2002,5,10)) == MyMoneyMoney(-100000));
- //qDebug ("Balance of A000006 is 88400 = %s", m->balance("A000006", TQDate(2002,5,10)).toString().ascii());
+ //tqDebug ("Balance of A000006 is 88400 = %s", m->balance("A000006", TQDate(2002,5,10)).toString().ascii());
CPPUNIT_ASSERT(m->balance("A000006", TQDate(2002,5,10)) == MyMoneyMoney(88400));
}
@@ -1731,7 +1731,7 @@ void MyMoneyDatabaseMgrTest::testScheduleList() {
m->addSchedule(schedule3);
m->addSchedule(schedule4);
} catch(MyMoneyException *e) {
- qDebug("Error: %s", e->what().latin1());
+ tqDebug("Error: %s", e->what().latin1());
delete e;
CPPUNIT_FAIL("Unexpected exception");
}
diff --git a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
index 3ab0b72..6ebea3c 100644
--- a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
+++ b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
@@ -870,7 +870,7 @@ const MyMoneyMoney MyMoneySeqAccessMgr::balance(const TQString& id, const TQDate
{
MyMoneyMoney result(0);
MyMoneyAccount acc;
- // if (date != TQDate()) qDebug ("request balance for %s at %s", id.data(), date.toString(Qt::ISODate).latin1());
+ // if (date != TQDate()) tqDebug ("request balance for %s at %s", id.data(), date.toString(Qt::ISODate).latin1());
if(!date.isValid() && account(id).accountType() != MyMoneyAccount::Stock) {
if(m_accountList.find(id) != m_accountList.end())
return m_accountList[id].balance();
@@ -923,7 +923,7 @@ const MyMoneyMoney MyMoneySeqAccessMgr::balance(const TQString& id, const TQDate
if(m_balanceCache[id].valid == true)
result = m_balanceCache[id].balance;
else
- qDebug("Cache mishit should never happen at this point");
+ tqDebug("Cache mishit should never happen at this point");
return result;
}
@@ -1245,10 +1245,10 @@ const TQValueList<MyMoneySchedule> MyMoneySeqAccessMgr::scheduleList(
TQMap<TQString, MyMoneySchedule>::ConstIterator pos;
TQValueList<MyMoneySchedule> list;
- // qDebug("scheduleList()");
+ // tqDebug("scheduleList()");
for(pos = m_scheduleList.begin(); pos != m_scheduleList.end(); ++pos) {
- // qDebug(" '%s'", qPrintable((*pos).id()));
+ // tqDebug(" '%s'", qPrintable((*pos).id()));
if(type != MyMoneySchedule::TYPE_ANY) {
if(type != (*pos).type()) {
@@ -1305,7 +1305,7 @@ const TQValueList<MyMoneySchedule> MyMoneySeqAccessMgr::scheduleList(
continue;
}
- // qDebug("Adding '%s'", (*pos).name().latin1());
+ // tqDebug("Adding '%s'", (*pos).name().latin1());
list << *pos;
}
return list;
@@ -1340,7 +1340,7 @@ const TQValueList<MyMoneySchedule> MyMoneySeqAccessMgr::scheduleListEx(int sched
TQDate date,
const TQStringList& accounts) const
{
-// qDebug("scheduleListEx");
+// tqDebug("scheduleListEx");
TQMap<TQString, MyMoneySchedule>::ConstIterator pos;
TQValueList<MyMoneySchedule> list;
@@ -1374,7 +1374,7 @@ const TQValueList<MyMoneySchedule> MyMoneySeqAccessMgr::scheduleListEx(int sched
continue;
}
-// qDebug("\tAdding '%s'", (*pos).name().latin1());
+// tqDebug("\tAdding '%s'", (*pos).name().latin1());
list << *pos;
}
@@ -1436,7 +1436,7 @@ const MyMoneySecurity MyMoneySeqAccessMgr::security(const TQString& id) const
const TQValueList<MyMoneySecurity> MyMoneySeqAccessMgr::securityList(void) const
{
- //qDebug("securityList: Security list size is %d, this=%8p", m_equitiesList.size(), (void*)this);
+ //tqDebug("securityList: Security list size is %d, this=%8p", m_equitiesList.size(), (void*)this);
return m_securitiesList.values();
}
diff --git a/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.cpp b/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.cpp
index 9c36204..af05e16 100644
--- a/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.cpp
+++ b/kmymoney2/mymoney/storage/mymoneyseqaccessmgrtest.cpp
@@ -1384,7 +1384,7 @@ void MyMoneySeqAccessMgrTest::testScheduleList() {
m->addSchedule(schedule3);
m->addSchedule(schedule4);
} catch(MyMoneyException *e) {
- qDebug("Error: %s", e->what().latin1());
+ tqDebug("Error: %s", e->what().latin1());
delete e;
CPPUNIT_FAIL("Unexpected exception");
}
diff --git a/kmymoney2/mymoney/storage/mymoneystoragedump.cpp b/kmymoney2/mymoney/storage/mymoneystoragedump.cpp
index 73521b0..6dd8beb 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragedump.cpp
+++ b/kmymoney2/mymoney/storage/mymoneystoragedump.cpp
@@ -47,7 +47,7 @@ MyMoneyStorageDump::~MyMoneyStorageDump()
void MyMoneyStorageDump::readStream(TQDataStream& /* s */, IMyMoneySerialize* /* storage */)
{
- qDebug("Reading not supported by MyMoneyStorageDump!!");
+ tqDebug("Reading not supported by MyMoneyStorageDump!!");
}
void MyMoneyStorageDump::writeStream(TQDataStream& _s, IMyMoneySerialize* _storage)
diff --git a/kmymoney2/mymoney/storage/mymoneystoragesql.cpp b/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
index e14f79e..fe8ac87 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
+++ b/kmymoney2/mymoney/storage/mymoneystoragesql.cpp
@@ -45,8 +45,8 @@
#define CATCH } catch (MyMoneyException *e) {
#define PASS } catch (MyMoneyException *e) { throw; }
#define ECATCH }
-#define DBG(a) // qDebug(a)
-//#define TRACE(a) qDebug(a)
+#define DBG(a) // tqDebug(a)
+//#define TRACE(a) tqDebug(a)
#define TRACE(a) ::timetrace(a)
//***************** THE CURRENT VERSION OF THE DATABASE LAYOUT ****************
@@ -182,7 +182,7 @@ try {
}
break;
default:
- qFatal("%s", TQString("%1 - unknown open mode %2").arg(__func__).arg(openMode).data());
+ tqFatal("%s", TQString("%1 - unknown open mode %2").arg(__func__).arg(openMode).data());
}
if (rc != 0) return (rc);
// bypass logon check if we are creating a database
@@ -195,7 +195,7 @@ try {
.arg(m_logonUser)
.arg(m_logonAt.date().toString(Qt::ISODate))
.arg(m_logonAt.time().toString("hh.mm.ss"));
- qDebug("%s", m_error.data());
+ tqDebug("%s", m_error.data());
close(false);
rc = -1;
} else {
@@ -205,7 +205,7 @@ try {
}
return(rc);
} catch (TQString& s) {
- qDebug("%s",s.data());
+ tqDebug("%s",s.data());
return (1);
}
}
@@ -321,7 +321,7 @@ int MyMoneyStorageSql::upgradeDb() {
case 6:
break;
default:
- qFatal("Unknown version number in database - %d", m_dbVersion);
+ tqFatal("Unknown version number in database - %d", m_dbVersion);
}
}
// write updated version to DB
@@ -349,7 +349,7 @@ bool MyMoneyStorageSql::addColumn
if (c->name() == col)
break;
}
- if (ft == t.end()) qFatal("addColumn - get it right");
+ if (ft == t.end()) tqFatal("addColumn - get it right");
return (addColumn(t, *c, after));
}
@@ -357,7 +357,7 @@ bool MyMoneyStorageSql::addColumn
(const MyMoneyDbTable& t, const MyMoneyDbColumn& c,
const TQString& after){
if ((m_dbType == Sqlite3) && (!after.isEmpty()))
- qFatal("sqlite doesn't support 'AFTER'; use sqliteAlterTable");
+ tqFatal("sqlite doesn't support 'AFTER'; use sqliteAlterTable");
if (record(t.name()).contains(c.name()))
return (true);
TQSqlQuery q(this);
@@ -384,7 +384,7 @@ bool MyMoneyStorageSql::dropColumn
bool MyMoneyStorageSql::dropColumn
(const MyMoneyDbTable& t, const TQString& col){
if (m_dbType == Sqlite3)
- qFatal("sqlite doesn't support 'DROP COLUMN'; use sqliteAlterTable");
+ tqFatal("sqlite doesn't support 'DROP COLUMN'; use sqliteAlterTable");
if (!record(t.name()).contains(col))
return (true);
TQSqlQuery q(this);
@@ -400,7 +400,7 @@ bool MyMoneyStorageSql::dropColumn
int MyMoneyStorageSql::upgradeToV1() {
DBG("*** Entering MyMoneyStorageSql::upgradeToV1");
- if ((m_dbType == Sqlite) || (m_dbType == Sqlite3)) qFatal("SQLite upgrade NYI");
+ if ((m_dbType == Sqlite) || (m_dbType == Sqlite3)) tqFatal("SQLite upgrade NYI");
startCommitUnit(__func__);
MyMoneySqlQuery q(this);
// change kmmSplits pkey to (transactionId, splitId)
@@ -559,7 +559,7 @@ int MyMoneyStorageSql::upgradeToV1() {
int MyMoneyStorageSql::upgradeToV2() {
DBG("*** Entering MyMoneyStorageSql::upgradeToV2");
//SQLite3 now supports ALTER TABLE...ADD COLUMN, so only die if version < 3
- //if (m_dbType == Sqlite3) qFatal("SQLite upgrade NYI");
+ //if (m_dbType == Sqlite3) tqFatal("SQLite upgrade NYI");
startCommitUnit(__func__);
MyMoneySqlQuery q(this);
// change kmmSplits add price fields
@@ -576,7 +576,7 @@ int MyMoneyStorageSql::upgradeToV2() {
int MyMoneyStorageSql::upgradeToV3() {
DBG("*** Entering MyMoneyStorageSql::upgradeToV3");
//SQLite3 now supports ALTER TABLE...ADD COLUMN, so only die if version < 3
- //if (m_dbType == Sqlite3) qFatal("SQLite upgrade NYI");
+ //if (m_dbType == Sqlite3) tqFatal("SQLite upgrade NYI");
startCommitUnit(__func__);
MyMoneySqlQuery q(this);
// The default value is given here to populate the column.
@@ -740,7 +740,7 @@ long unsigned MyMoneyStorageSql::getRecCount (const TQString& table) const {
q.prepare(TQString("SELECT COUNT(*) FROM %1;").arg(table));
if ((!q.exec()) || (!q.next())) {
buildError (q, __func__, "error retrieving record count");
- qFatal("Error retrieving record count"); // definitely shouldn't happen
+ tqFatal("Error retrieving record count"); // definitely shouldn't happen
}
return ((unsigned long) q.value(0).toULongLong());
}
@@ -921,7 +921,7 @@ bool MyMoneyStorageSql::endCommitUnit (const TQString& callingFunction) {
// as value of this method.
bool rc = true;
if (callingFunction != m_commitUnitStack.top())
- qDebug("%s", TQString("%1 - %2 s/be %3").arg(__func__).arg(callingFunction).arg(m_commitUnitStack.top()).data());
+ tqDebug("%s", TQString("%1 - %2 s/be %3").arg(__func__).arg(callingFunction).arg(m_commitUnitStack.top()).data());
m_commitUnitStack.pop();
if (m_commitUnitStack.isEmpty()) {
if (!commit()) throw new MYMONEYEXCEPTION(buildError (MyMoneySqlQuery(), __func__, "ending commit unit"));
@@ -932,7 +932,7 @@ bool MyMoneyStorageSql::endCommitUnit (const TQString& callingFunction) {
void MyMoneyStorageSql::cancelCommitUnit (const TQString& callingFunction) {
DBG("*** Entering MyMoneyStorageSql::cancelCommitUnit");
if (callingFunction != m_commitUnitStack.top())
- qDebug("%s", TQString("%1 - %2 s/be %3").arg(__func__).arg(callingFunction).arg(m_commitUnitStack.top()).data());
+ tqDebug("%s", TQString("%1 - %2 s/be %3").arg(__func__).arg(callingFunction).arg(m_commitUnitStack.top()).data());
if (m_commitUnitStack.isEmpty()) return;
m_commitUnitStack.clear();
if (!rollback()) throw new MYMONEYEXCEPTION(buildError (MyMoneySqlQuery(), __func__, "cancelling commit unit"));
@@ -2752,7 +2752,7 @@ const TQMap<TQString, MyMoneyTransaction> MyMoneyStorageSql::fetchTransactions (
}
if ((tidList.isEmpty()) && (dateClause.isEmpty())) {
- //qDebug("setting full list read");
+ //tqDebug("setting full list read");
}
return txMap;
}
@@ -2917,7 +2917,7 @@ const TQMap<TQString, MyMoneyTransaction> MyMoneyStorageSql::fetchTransactions (
int obc = whereClause.contains('(');
int cbc = whereClause.contains(')');
if (cbc > obc) {
- qFatal("invalid where clause - %s", whereClause.latin1());
+ tqFatal("invalid where clause - %s", whereClause.latin1());
}
while (cbc < obc) {
whereClause.append(")");
@@ -2927,14 +2927,14 @@ const TQMap<TQString, MyMoneyTransaction> MyMoneyStorageSql::fetchTransactions (
// it means we already have all the transactions for the specified filter
// in memory, so just exit
if ((splitFilterActive) && (whereClause.isEmpty())) {
- qDebug("all transactions already in storage");
+ tqDebug("all transactions already in storage");
return fetchTransactions();
}
// if we have neither a split filter, nor a tx (date) filter
// it's effectively a read all
if ((!splitFilterActive) && (!txFilterActive)) {
- //qDebug("reading all transactions");
+ //tqDebug("reading all transactions");
return fetchTransactions();
}
// build a date clause for the transaction table
@@ -3008,7 +3008,7 @@ bool MyMoneyStorageSql::isReferencedByTransaction(const TQString& id) const {
q.bindValue(":ID", id);
if ((!q.exec()) || (!q.next())) {
buildError (q, __func__, "error retrieving reference count");
- qFatal("Error retrieving reference count"); // definitely shouldn't happen
+ tqFatal("Error retrieving reference count"); // definitely shouldn't happen
}
return (0 != q.value(0).toULongLong());
}
@@ -3797,7 +3797,7 @@ TQString& MyMoneyStorageSql::buildError (const TQSqlQuery& q, const TQString& fu
s += TQString ("\nQuery error No %1: %2").arg(e.number()).arg(e.text());
const_cast <MyMoneyStorageSql*> (this)->m_error = s;
- qDebug("%s", s.ascii());
+ tqDebug("%s", s.ascii());
const_cast <MyMoneyStorageSql*> (this)->cancelCommitUnit(function);
return (const_cast <MyMoneyStorageSql*> (this)->m_error);
}
diff --git a/kmymoney2/mymoney/storage/mymoneystoragesql.h b/kmymoney2/mymoney/storage/mymoneystoragesql.h
index eb7b5a3..c5a2616 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragesql.h
+++ b/kmymoney2/mymoney/storage/mymoneystoragesql.h
@@ -767,7 +767,7 @@ private:
*/
// TQValueList<TQString> m_payeeList;
- void alert(TQString s) const {qDebug("%s", s.ascii());}; // FIXME: remove...
+ void alert(TQString s) const {tqDebug("%s", s.ascii());}; // FIXME: remove...
/** The following keeps track of commitment units (known as transactions in SQL
* though it would be confusing to use that term within KMM). It is implemented
* as a stack for debug purposes. Long term, probably a count would suffice
diff --git a/kmymoney2/mymoney/storage/mymoneystoragexml.cpp b/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
index a95668f..063687a 100644
--- a/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
+++ b/kmymoney2/mymoney/storage/mymoneystoragexml.cpp
@@ -107,31 +107,31 @@ MyMoneyXmlContentHandler::MyMoneyXmlContentHandler(MyMoneyStorageXML* reader) :
bool MyMoneyXmlContentHandler::startDocument(void)
{
- qDebug("startDocument");
+ tqDebug("startDocument");
return true;
}
bool MyMoneyXmlContentHandler::endDocument(void)
{
- qDebug("endDocument");
+ tqDebug("endDocument");
return true;
}
bool MyMoneyXmlContentHandler::skippedEntity (const TQString & /* name */)
{
- // qDebug(TQString("Skipped entity '%1'").arg(name));
+ // tqDebug(TQString("Skipped entity '%1'").arg(name));
return true;
}
bool MyMoneyXmlContentHandler::startPrefixMapping (const TQString& /*prefix */, const TQString & /* uri */)
{
- // qDebug(TQString("start prefix '%1', '%2'").arg(prefix).arg(uri));
+ // tqDebug(TQString("start prefix '%1', '%2'").arg(prefix).arg(uri));
return true;
}
bool MyMoneyXmlContentHandler::endPrefixMapping (const TQString& /* prefix */)
{
- // qDebug(TQString("end prefix '%1'").arg(prefix));
+ // tqDebug(TQString("end prefix '%1'").arg(prefix));
return true;
}
@@ -160,35 +160,35 @@ bool MyMoneyXmlContentHandler::startElement (const TQString& /* namespaceURI */,
m_level = 1;
} else if(s == "transactions") {
- qDebug("reading transactions");
+ tqDebug("reading transactions");
if(atts.count()) {
int count = atts.value(TQString("count")).toUInt();
m_reader->signalProgress(0, count, i18n("Loading transactions..."));
m_elementCount = 0;
}
} else if(s == "accounts") {
- qDebug("reading accounts");
+ tqDebug("reading accounts");
if(atts.count()) {
int count = atts.value(TQString("count")).toUInt();
m_reader->signalProgress(0, count, i18n("Loading accounts..."));
m_elementCount = 0;
}
} else if(s == "securities") {
- qDebug("reading securities");
+ tqDebug("reading securities");
if(atts.count()) {
int count = atts.value(TQString("count")).toUInt();
m_reader->signalProgress(0, count, i18n("Loading securities..."));
m_elementCount = 0;
}
} else if(s == "reports") {
- qDebug("reading reports");
+ tqDebug("reading reports");
if(atts.count()) {
int count = atts.value(TQString("count")).toUInt();
m_reader->signalProgress(0, count, i18n("Loading reports..."));
m_elementCount = 0;
}
} else if(s == "prices") {
- qDebug("reading prices");
+ tqDebug("reading prices");
m_elementCount = 0;
} else if(s == "pricepair") {
if(atts.count()) {
@@ -385,7 +385,7 @@ void MyMoneyStorageXML::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage
m_doc = new TQDomDocument;
TQ_CHECK_PTR(m_doc);
- qDebug("reading file");
+ tqDebug("reading file");
// creating the TQXmlInputSource object based on a TQIODevice object
// reads all data of the underlying object into memory. I have not
// found an object that reads on the fly. I tried to derive one myself,
@@ -393,7 +393,7 @@ void MyMoneyStorageXML::readFile(TQIODevice* pDevice, IMyMoneySerialize* storage
// blocks of data and not a stream. So I left it the way it is. (ipwizard)
TQXmlInputSource xml(pDevice);
- qDebug("start parsing file");
+ tqDebug("start parsing file");
MyMoneyXmlContentHandler mmxml(this);
TQXmlSimpleReader reader;
reader.setContentHandler(&mmxml);
@@ -431,7 +431,7 @@ void MyMoneyStorageXML::writeFile(TQIODevice* qf, IMyMoneySerialize* storage)
}
m_storage = storage;
- // qDebug("XMLWRITER: Starting file write");
+ // tqDebug("XMLWRITER: Starting file write");
m_doc = new TQDomDocument("KMYMONEY-FILE");
TQ_CHECK_PTR(m_doc);
TQDomProcessingInstruction instruct = m_doc->createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\"");
diff --git a/kmymoney2/plugins/interfaces/kmmstatementinterface.cpp b/kmymoney2/plugins/interfaces/kmmstatementinterface.cpp
index 7fcefb0..eead74b 100644
--- a/kmymoney2/plugins/interfaces/kmmstatementinterface.cpp
+++ b/kmymoney2/plugins/interfaces/kmmstatementinterface.cpp
@@ -39,7 +39,7 @@ KMyMoneyPlugin::KMMStatementInterface::KMMStatementInterface(KMyMoney2App* app,
bool KMyMoneyPlugin::KMMStatementInterface::import(const MyMoneyStatement& s)
{
- qDebug("KMyMoneyPlugin::KMMStatementInterface::import start");
+ tqDebug("KMyMoneyPlugin::KMMStatementInterface::import start");
return m_app->slotStatementImport(s);
}
diff --git a/kmymoney2/plugins/kmymoneyplugin.cpp b/kmymoney2/plugins/kmymoneyplugin.cpp
index add4588..db57abd 100644
--- a/kmymoney2/plugins/kmymoneyplugin.cpp
+++ b/kmymoney2/plugins/kmymoneyplugin.cpp
@@ -49,7 +49,7 @@ KAction* KMyMoneyPlugin::Plugin::action(const TQString& actionName) const
if(p)
return p;
- qWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning("Action with name '%s' not found!", actionName.latin1());
return &dummyAction;
}
@@ -63,13 +63,13 @@ KToggleAction* KMyMoneyPlugin::Plugin::toggleAction(const TQString& actionName)
if(q) {
KToggleAction* p = dynamic_cast<KToggleAction*>(q);
if(!p) {
- qWarning("Action '%s' is not of type KToggleAction", actionName.latin1());
+ tqWarning("Action '%s' is not of type KToggleAction", actionName.latin1());
p = &dummyAction;
}
return p;
}
- qWarning("Action with name '%s' not found!", actionName.latin1());
+ tqWarning("Action with name '%s' not found!", actionName.latin1());
return &dummyAction;
}
diff --git a/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp b/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
index 5ac0f89..a61ad77 100644
--- a/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
+++ b/kmymoney2/plugins/ofximport/dialogs/konlinebankingsetupwizard.cpp
@@ -362,7 +362,7 @@ int KOnlineBankingSetupWizard::ofxAccountCallback(struct OfxAccountData data, vo
kvps.setValue("kmmofx-acc-ref", TQString("%1-%2").arg(kvps.value("bankid"), kvps.value("uniqueId")));
} else {
- qDebug("Cannot setup kmmofx-acc-ref for '%s'", kvps.value("bankname").data());
+ tqDebug("Cannot setup kmmofx-acc-ref for '%s'", kvps.value("bankname").data());
}
kvps.setValue("protocol","OFX");
diff --git a/kmymoney2/plugins/ofximport/ofximporterplugin.cpp b/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
index d4d6244..b9c4f5e 100644
--- a/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
+++ b/kmymoney2/plugins/ofximport/ofximporterplugin.cpp
@@ -560,7 +560,7 @@ int OfxImporterPlugin::ofxStatusCallback(struct OfxStatusData data, void * pv)
bool OfxImporterPlugin::importStatement(const MyMoneyStatement& s)
{
- qDebug("OfxImporterPlugin::importStatement start");
+ tqDebug("OfxImporterPlugin::importStatement start");
return statementInterface()->import(s);
}
@@ -670,7 +670,7 @@ bool OfxImporterPlugin::storeStatements(TQValueList<MyMoneyStatement>& statement
abort = true;
}*/
- qDebug("OfxImporterPlugin::storeStatements() with %d statements called", static_cast<int>(statements.count()));
+ tqDebug("OfxImporterPlugin::storeStatements() with %d statements called", static_cast<int>(statements.count()));
TQValueList<MyMoneyStatement>::const_iterator it_s = statements.begin();
while ( it_s != statements.end() && !abort ) {
ok = ok && importStatement((*it_s));
diff --git a/kmymoney2/reports/objectinfotable.cpp b/kmymoney2/reports/objectinfotable.cpp
index f99c115..ef4af13 100644
--- a/kmymoney2/reports/objectinfotable.cpp
+++ b/kmymoney2/reports/objectinfotable.cpp
@@ -357,7 +357,7 @@ MyMoneyMoney ObjectInfoTable::investmentBalance(const MyMoneyAccount& acc)
val = val.convert(acc.fraction());
value += val;
} catch(MyMoneyException* e) {
- qWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data());
+ tqWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data());
delete e;
}
}
diff --git a/kmymoney2/reports/pivottable.cpp b/kmymoney2/reports/pivottable.cpp
index b75ffb9..7846d93 100644
--- a/kmymoney2/reports/pivottable.cpp
+++ b/kmymoney2/reports/pivottable.cpp
@@ -72,7 +72,7 @@ Debug::Debug( const TQString& _name ): m_methodName( _name ), m_enabled( m_sEnab
if (m_enabled)
{
- qDebug( "%s%s(): ENTER", m_sTabs.latin1(), m_methodName.latin1() );
+ tqDebug( "%s%s(): ENTER", m_sTabs.latin1(), m_methodName.latin1() );
m_sTabs.append("--");
}
}
@@ -82,7 +82,7 @@ Debug::~Debug()
if ( m_enabled )
{
m_sTabs.remove(0,2);
- qDebug( "%s%s(): EXIT", m_sTabs.latin1(), m_methodName.latin1() );
+ tqDebug( "%s%s(): EXIT", m_sTabs.latin1(), m_methodName.latin1() );
if (m_methodName == m_sEnableKey)
m_enabled = false;
@@ -92,7 +92,7 @@ Debug::~Debug()
void Debug::output( const TQString& _text )
{
if ( m_enabled )
- qDebug( "%s%s(): %s", m_sTabs.latin1(), m_methodName.latin1(), _text.latin1() );
+ tqDebug( "%s%s(): %s", m_sTabs.latin1(), m_methodName.latin1(), _text.latin1() );
}
PivotTable::PivotTable( const MyMoneyReport& _config_f ):
@@ -190,7 +190,7 @@ void PivotTable::init(void)
try {
transactions = file->transactionList(m_config_f);
} catch(MyMoneyException *e) {
- qDebug("ERR: %s thrown in %s(%ld)", e->what().data(), e->file().data(), e->line());
+ tqDebug("ERR: %s thrown in %s(%ld)", e->what().data(), e->file().data(), e->line());
throw e;
}
DEBUG_OUTPUT(TQString("Found %1 matching transactions").arg(transactions.count()));
@@ -332,7 +332,7 @@ void PivotTable::init(void)
if(value != MyMoneyMoney::autoCalc) {
value = value * reverse;
} else {
- qDebug("PivotTable::PivotTable(): This must not happen");
+ tqDebug("PivotTable::PivotTable(): This must not happen");
value = MyMoneyMoney(); // keep it 0 so far
}
@@ -761,7 +761,7 @@ void PivotTable::calculateRunningSums( void )
MyMoneyMoney PivotTable::cellBalance(const TQString& outergroup, const ReportAccount& _row, unsigned _column, bool budget)
{
if(m_runningSumsCalculated) {
- qDebug("You must not call PivotTable::cellBalance() after calling PivotTable::calculateRunningSums()");
+ tqDebug("You must not call PivotTable::cellBalance() after calling PivotTable::calculateRunningSums()");
throw new MYMONEYEXCEPTION(TQString("You must not call PivotTable::cellBalance() after calling PivotTable::calculateRunningSums()"));
}
diff --git a/kmymoney2/views/kgloballedgerview.cpp b/kmymoney2/views/kgloballedgerview.cpp
index e82459a..6806ea7 100644
--- a/kmymoney2/views/kgloballedgerview.cpp
+++ b/kmymoney2/views/kgloballedgerview.cpp
@@ -847,7 +847,7 @@ void KGlobalLedgerView::loadAccounts(void)
try {
d->m_precision = MyMoneyMoney::denomToPrec(m_account.fraction());
} catch(MyMoneyException *e) {
- qDebug("Security %s for account %s not found", m_account.currencyId().data(), m_account.name().data());
+ tqDebug("Security %s for account %s not found", m_account.currencyId().data(), m_account.name().data());
delete e;
d->m_precision = 2;
}
@@ -956,7 +956,7 @@ bool KGlobalLedgerView::slotSelectAccount(const TQString& id, const TQString& tr
m_newAccountLoaded = true;
slotLoadView();
} catch(MyMoneyException* e) {
- qDebug("Unable to retrieve account %s", id.data());
+ tqDebug("Unable to retrieve account %s", id.data());
delete e;
rc = false;
}
@@ -1207,17 +1207,17 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next)
{
bool rc = false;
- // qDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
+ // tqDebug("KGlobalLedgerView::focusNextPrevChild(editmode=%s)", m_inEditMode ? "true" : "false");
if(m_inEditMode) {
TQWidget *w = 0;
TQWidget *currentWidget;
w = tqApp->focusWidget();
while(w && m_tabOrderWidgets.find(w) == -1) {
- // qDebug("'%s' not in list, use parent", w->className());
+ // tqDebug("'%s' not in list, use parent", w->className());
w = w->parentWidget();
}
- // if(w) qDebug("tab order is at '%s'", w->className());
+ // if(w) tqDebug("tab order is at '%s'", w->className());
currentWidget = m_tabOrderWidgets.current();
w = next ? m_tabOrderWidgets.next() : m_tabOrderWidgets.prev();
@@ -1229,7 +1229,7 @@ bool KGlobalLedgerView::focusNextPrevChild(bool next)
if(w != currentWidget
&& ((w->focusPolicy() & TQ_TabFocus) == TQ_TabFocus)
&& w->isVisible() && w->isEnabled()) {
- // qDebug("Selecting '%s' as focus", w->className());
+ // tqDebug("Selecting '%s' as focus", w->className());
w->setFocus();
rc = true;
break;
@@ -1270,14 +1270,14 @@ bool KGlobalLedgerView::eventFilter(TQObject* o, TQEvent* e)
if(e->type() == TQEvent::KeyPress) {
TQKeyEvent *k = TQT_TQKEYEVENT(e);
if(m_inEditMode) {
- // qDebug("object = %s, key = %d", o->className(), k->key());
+ // tqDebug("object = %s, key = %d", o->className(), k->key());
if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) {
// we hide all key press events from the register
// while editing a transaction
rc = true;
}
} else {
- // qDebug("object = %s, key = %d", o->className(), k->key());
+ // tqDebug("object = %s, key = %d", o->className(), k->key());
if(TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(m_register)) {
if((k->state() & TQt::KeyButtonMask) == 0) {
switch(k->key()) {
@@ -1333,7 +1333,7 @@ void KGlobalLedgerView::slotSortOptions(void)
MyMoneyFile::instance()->modifyAccount(m_account);
ft.commit();
} catch(MyMoneyException* e) {
- qDebug("Unable to update sort order for account '%s': %s", m_account.name().latin1(), e->what().latin1());
+ tqDebug("Unable to update sort order for account '%s': %s", m_account.name().latin1(), e->what().latin1());
delete e;
}
}
diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp
index bb13614..2469ed3 100644
--- a/kmymoney2/views/khomeview.cpp
+++ b/kmymoney2/views/khomeview.cpp
@@ -181,20 +181,20 @@ void KHomeView::loadView(void)
DOM::Element e = m_part->document().getElementById("test");
if ( e.isNull() )
{
- qDebug("Element id=test not found");
+ tqDebug("Element id=test not found");
}
else
{
- qDebug("Element id=test found!");
+ tqDebug("Element id=test found!");
TQString tagname = e.tagName().string();
- qDebug("%s",tagname.latin1());
- qDebug("%s id=%s",e.tagName().string().latin1(),e.getAttribute("id").string().latin1());
+ tqDebug("%s",tagname.latin1());
+ tqDebug("%s id=%s",e.tagName().string().latin1(),e.getAttribute("id").string().latin1());
// Find the character data node
DOM::Node n = e.firstChild();
while (!n.isNull())
{
- qDebug("Child type %u",static_cast<unsigned>(n.nodeType()));
+ tqDebug("Child type %u",static_cast<unsigned>(n.nodeType()));
if ( n.nodeType() == DOM::Node::TEXT_NODE )
{
DOM::Text t = n;
@@ -204,7 +204,7 @@ void KHomeView::loadView(void)
m_part->document().importNode(e,true);
m_part->document().updateRendering();
- qDebug("Data is now %s",t.data().string().latin1());
+ tqDebug("Data is now %s",t.data().string().latin1());
}
n = n.nextSibling();
}
@@ -682,12 +682,12 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt)
tmp += showColoredAmount(balance, balanceAfter.isNegative());
tmp += "</td>";
- // qDebug("paymentEntry = '%s'", tmp.latin1());
+ // tqDebug("paymentEntry = '%s'", tmp.latin1());
m_part->write(tmp);
}
}
} catch(MyMoneyException* e) {
- qDebug("Unable to display schedule entry: %s", e->what().data());
+ tqDebug("Unable to display schedule entry: %s", e->what().data());
delete e;
}
}
@@ -868,7 +868,7 @@ void KHomeView::showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney&
tmp += TQString("<td class=\"right\">%1</td>").arg(showColoredAmount(amountToMinBal, valueToMinBal.isNegative()));
}
}
- // qDebug("accountEntry = '%s'", tmp.latin1());
+ // tqDebug("accountEntry = '%s'", tmp.latin1());
m_part->write(tmp);
}
@@ -893,7 +893,7 @@ MyMoneyMoney KHomeView::investmentBalance(const MyMoneyAccount& acc)
val = val.convert(acc.fraction());
value += val;
} catch(MyMoneyException* e) {
- qWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data());
+ tqWarning("%s", (TQString("cannot convert stock balance of %1 to base currency: %2").arg(stock.name(), e->what())).data());
delete e;
}
}
@@ -1184,7 +1184,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */)
loadView();
} else {
- qDebug("Unknown view '%s' in KHomeView::slotOpenURL()", view.latin1());
+ tqDebug("Unknown view '%s' in KHomeView::slotOpenURL()", view.latin1());
}
}
}
diff --git a/kmymoney2/views/kinvestmentlistitem.cpp b/kmymoney2/views/kinvestmentlistitem.cpp
index d13f5d3..a2a7723 100644
--- a/kmymoney2/views/kinvestmentlistitem.cpp
+++ b/kmymoney2/views/kinvestmentlistitem.cpp
@@ -183,7 +183,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi
return TQString("0.0%");
}
- //qDebug("Current date/value to use is %s/%s, Previous is %s/%s", tempDate.toString().data(), currentValue.toString().data(), comparisonDate.toString().data(), comparisonValue.toString().data());
+ //tqDebug("Current date/value to use is %s/%s, Previous is %s/%s", tempDate.toString().data(), currentValue.toString().data(), comparisonDate.toString().data(), comparisonValue.toString().data());
//compute the percentage difference
if(comparisonValue != currentValue)
@@ -201,7 +201,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi
/*MyMoneyMoney result = (currentValue / comparisonValue);
result = result * 100;
result = result - 100;
- qDebug("final result = %s", result.toString().data());
+ tqDebug("final result = %s", result.toString().data());
return TQString(result.formatMoney("", 3) + "%");*/
}
}
diff --git a/kmymoney2/views/kinvestmentview.cpp b/kmymoney2/views/kinvestmentview.cpp
index ba1876f..57d7aa8 100644
--- a/kmymoney2/views/kinvestmentview.cpp
+++ b/kmymoney2/views/kinvestmentview.cpp
@@ -182,7 +182,7 @@ void KInvestmentView::loadAccounts(void)
try {
d->m_precision = MyMoneyMoney::denomToPrec(d->m_account.fraction());
} catch(MyMoneyException *e) {
- qDebug("Security %s for account %s not found", d->m_account.currencyId().data(), d->m_account.name().data());
+ tqDebug("Security %s for account %s not found", d->m_account.currencyId().data(), d->m_account.name().data());
delete e;
d->m_precision = 2;
}
@@ -231,7 +231,7 @@ bool KInvestmentView::slotSelectAccount(const TQString& id, const TQString& tran
}
} catch(MyMoneyException* e) {
- qDebug("Unable to retrieve account %s", id.data());
+ tqDebug("Unable to retrieve account %s", id.data());
delete e;
rc = false;
}
@@ -295,7 +295,7 @@ void KInvestmentView::loadView(void)
new KInvestmentListItem(m_table, acc);
}
} catch(MyMoneyException* e) {
- qDebug("KInvestmentView::loadView() - selected account does not exist anymore");
+ tqDebug("KInvestmentView::loadView() - selected account does not exist anymore");
d->m_account = MyMoneyAccount();
delete e;
}
diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp
index 3b60c49..e622260 100644
--- a/kmymoney2/views/kmymoneyview.cpp
+++ b/kmymoney2/views/kmymoneyview.cpp
@@ -483,11 +483,11 @@ void KMyMoneyView::slotLedgerSelected(const TQString& _accId, const TQString& tr
case MyMoneyAccount::CertificateDep:
case MyMoneyAccount::MoneyMarket:
case MyMoneyAccount::Currency:
- qDebug("No ledger view available for account type %d", acc.accountType());
+ tqDebug("No ledger view available for account type %d", acc.accountType());
break;
default:
- qDebug("Unknown account type %d in KMyMoneyView::slotLedgerSelected", acc.accountType());
+ tqDebug("Unknown account type %d in KMyMoneyView::slotLedgerSelected", acc.accountType());
break;
}
}
@@ -559,7 +559,7 @@ bool KMyMoneyView::readFile(const KURL& url)
#else
if(url.isMalformed()) {
#endif
- qDebug("Invalid URL '%s'", url.url().latin1());
+ tqDebug("Invalid URL '%s'", url.url().latin1());
return false;
}
@@ -911,7 +911,7 @@ bool KMyMoneyView::initializeStorage()
// Check if we have to modify the file before we allow to work with it
IMyMoneyStorage* s = MyMoneyFile::instance()->storage();
while (s->fileFixVersion() < s->currentFixVersion()) {
- qDebug("%s", (TQString("testing fileFixVersion %1 < %2").arg(s->fileFixVersion()).arg(s->currentFixVersion())).data());
+ tqDebug("%s", (TQString("testing fileFixVersion %1 < %2").arg(s->fileFixVersion()).arg(s->currentFixVersion())).data());
switch (s->fileFixVersion()) {
case 0:
fixFile_0();
@@ -941,7 +941,7 @@ bool KMyMoneyView::initializeStorage()
return false;
}
} else {
- qDebug("Skipping automatic transaction fix!");
+ tqDebug("Skipping automatic transaction fix!");
}
MyMoneyFile::instance()->blockSignals(blocked);
@@ -1308,7 +1308,7 @@ void KMyMoneyView::selectBaseCurrency(void)
file->modifyAccount(*it);
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Unable to setup base currency in account %s (%s): %s", (*it).name().latin1(), (*it).id().data(), e->what().latin1());
+ tqDebug("Unable to setup base currency in account %s (%s): %s", (*it).name().latin1(), (*it).id().data(), e->what().latin1());
delete e;
}
}
@@ -1336,7 +1336,7 @@ void KMyMoneyView::loadDefaultCurrency(const MyMoneySecurity& currency, const bo
}
ft.commit();
} catch (MyMoneyException* e) {
- qDebug("Error %s loading default currency", e->what().data());
+ tqDebug("Error %s loading default currency", e->what().data());
delete e;
}
}
@@ -1536,7 +1536,7 @@ void KMyMoneyView::loadAncientCurrency(const TQString& id, const TQString& name,
}
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Error loading currency: %s", e->what().data());
+ tqDebug("Error loading currency: %s", e->what().data());
delete e;
}
}
@@ -1683,7 +1683,7 @@ void KMyMoneyView::fixFile_2(void)
}
}
}
- qDebug("%d transactions fixed in fixFile_2", count);
+ tqDebug("%d transactions fixed in fixFile_2", count);
}
void KMyMoneyView::fixFile_1(void)
@@ -1866,7 +1866,7 @@ void KMyMoneyView::fixSchedule_0(MyMoneySchedule sched)
MyMoneyFile::instance()->modifySchedule(sched);
}
} catch(MyMoneyException *e) {
- qWarning("Unable to update broken schedule: %s", e->what().latin1());
+ tqWarning("Unable to update broken schedule: %s", e->what().latin1());
delete e;
}
}
@@ -2082,7 +2082,7 @@ void KMyMoneyView::fixTransactions_0(void)
file->modifyTransaction(*it_t);
}
splits = (*it_t).splits(); // update local copy
- qDebug("Fixed credit card assignment in %s", (*it_t).id().data());
+ tqDebug("Fixed credit card assignment in %s", (*it_t).id().data());
}
#endif
@@ -2104,7 +2104,7 @@ void KMyMoneyView::fixTransactions_0(void)
(*it_s).setAction(MyMoneySplit::ActionInterest);
(*it_t).modifySplit(*it_s);
file->modifyTransaction(*it_t);
- qDebug("Fixed interest action in %s", (*it_t).id().data());
+ tqDebug("Fixed interest action in %s", (*it_t).id().data());
}
// if it does not reference an interest account, it must not be
// of type ActionInterest
@@ -2114,7 +2114,7 @@ void KMyMoneyView::fixTransactions_0(void)
(*it_s).setAction(defaultAction);
(*it_t).modifySplit(*it_s);
file->modifyTransaction(*it_t);
- qDebug("Fixed interest action in %s", (*it_t).id().data());
+ tqDebug("Fixed interest action in %s", (*it_t).id().data());
}
}
@@ -2134,14 +2134,14 @@ void KMyMoneyView::fixTransactions_0(void)
try {
int fract = splitAccount.fraction();
if((*it_s).shares() != (*it_s).shares().convert(fract)) {
- qDebug("adjusting fraction in %s,%s", (*it_t).id().data(), (*it_s).id().data());
+ tqDebug("adjusting fraction in %s,%s", (*it_t).id().data(), (*it_s).id().data());
(*it_s).setShares((*it_s).shares().convert(fract));
(*it_s).setValue((*it_s).value().convert(fract));
(*it_t).modifySplit(*it_s);
file->modifyTransaction(*it_t);
}
} catch(MyMoneyException* e) {
- qDebug("Missing security '%s', split not altered", splitAccount.currencyId().data());
+ tqDebug("Missing security '%s', split not altered", splitAccount.currencyId().data());
delete e;
}
}
@@ -2164,7 +2164,7 @@ void KMyMoneyView::fixTransactions_0(void)
void KMyMoneyView::fixDuplicateAccounts_0(MyMoneyTransaction& t)
{
- qDebug("Duplicate account in transaction %s", t.id().data());
+ tqDebug("Duplicate account in transaction %s", t.id().data());
}
void KMyMoneyView::slotPrintView(void)
diff --git a/kmymoney2/views/kpayeesview.cpp b/kmymoney2/views/kpayeesview.cpp
index 11326da..4e21042 100644
--- a/kmymoney2/views/kpayeesview.cpp
+++ b/kmymoney2/views/kpayeesview.cpp
@@ -637,7 +637,7 @@ void KPayeesView::slotSelectPayee(void)
showTransactions();
} catch(MyMoneyException *e) {
- qDebug("exception during display of payee: %s at %s:%ld", e->what().latin1(), e->file().latin1(), e->line());
+ tqDebug("exception during display of payee: %s at %s:%ld", e->what().latin1(), e->file().latin1(), e->line());
m_transactionView->clear();
m_payee = MyMoneyPayee();
delete e;
@@ -1083,7 +1083,7 @@ void KPayeesView::slotSelectPayeeAndTransaction(const TQString& payeeId, const T
}
} catch(MyMoneyException *e) {
- qWarning("Unexpected exception in KPayeesView::slotSelectPayeeAndTransaction");
+ tqWarning("Unexpected exception in KPayeesView::slotSelectPayeeAndTransaction");
delete e;
}
}
diff --git a/kmymoney2/views/kreportsview.cpp b/kmymoney2/views/kreportsview.cpp
index 8b43f5f..8046efa 100755
--- a/kmymoney2/views/kreportsview.cpp
+++ b/kmymoney2/views/kreportsview.cpp
@@ -551,10 +551,10 @@ void KReportsView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args *
else if ( command == "delete" )
slotDelete();
else
- qDebug("Unknown command '%s' in KReportsView::slotOpenURL()", static_cast<const char*>(command));
+ tqDebug("Unknown command '%s' in KReportsView::slotOpenURL()", static_cast<const char*>(command));
} else {
- qDebug("Unknown view '%s' in KReportsView::slotOpenURL()", view.latin1());
+ tqDebug("Unknown view '%s' in KReportsView::slotOpenURL()", view.latin1());
}
}
@@ -673,7 +673,7 @@ void KReportsView::slotDuplicate(void)
new KReportListItem( m_reportListView, dupe );
addReportTab(dupe);
} catch(MyMoneyException* e) {
- qDebug("Cannot add report");
+ tqDebug("Cannot add report");
delete e;
}
}
diff --git a/kmymoney2/views/kscheduledlistitem.cpp b/kmymoney2/views/kscheduledlistitem.cpp
index b055b25..849b0c8 100644
--- a/kmymoney2/views/kscheduledlistitem.cpp
+++ b/kmymoney2/views/kscheduledlistitem.cpp
@@ -88,7 +88,7 @@ KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoney
}
}
if(it_s == transaction.splits().end()) {
- qFatal("Split for payment account not found in %s:%d.", __FILE__, __LINE__);
+ tqFatal("Split for payment account not found in %s:%d.", __FILE__, __LINE__);
}
break;
diff --git a/kmymoney2/views/kscheduledview.cpp b/kmymoney2/views/kscheduledview.cpp
index 07c8d57..dcf8052 100644
--- a/kmymoney2/views/kscheduledview.cpp
+++ b/kmymoney2/views/kscheduledview.cpp
@@ -484,7 +484,7 @@ void KScheduledView::slotSetSelectedItem(TQListViewItem* item)
emit scheduleSelected(schedule);
m_selectedSchedule = schedItem->scheduleId();
} catch(MyMoneyException* e) {
- qDebug("KScheduledView::slotSetSelectedItem: %s", e->what().data());
+ tqDebug("KScheduledView::slotSetSelectedItem: %s", e->what().data());
delete e;
}
}
diff --git a/kmymoney2/widgets/kaccounttemplateselector.cpp b/kmymoney2/widgets/kaccounttemplateselector.cpp
index 9b26503..430c2dc 100644
--- a/kmymoney2/widgets/kaccounttemplateselector.cpp
+++ b/kmymoney2/widgets/kaccounttemplateselector.cpp
@@ -184,7 +184,7 @@ void KAccountTemplateSelector::slotLoadTemplateList(void)
TQStringList::iterator it;
for(it = d->dirlist.begin(); it != d->dirlist.end(); ++it) {
TQDir dir(*it);
- // qDebug("Reading dir '%s' with %d entries", (*it).data(), dir.count());
+ // tqDebug("Reading dir '%s' with %d entries", (*it).data(), dir.count());
dirs = dir.entryList("*", TQDir::Dirs);
TQStringList::iterator it_d;
for(it_d= dirs.begin(); it_d != dirs.end(); ++it_d) {
@@ -214,7 +214,7 @@ void KAccountTemplateSelector::slotLoadTemplateList(void)
TQString country = KGlobal::locale()->twoAlphaToCountryName((*it_d).upper());
d->countries[country] = *it_d;
} else {
- qDebug("'%s/%s' not scanned", (*it).data(), (*it_d).data());
+ tqDebug("'%s/%s' not scanned", (*it).data(), (*it_d).data());
}
}
}
diff --git a/kmymoney2/widgets/kguiutils.cpp b/kmymoney2/widgets/kguiutils.cpp
index e8e8d3f..24bf3f6 100644
--- a/kmymoney2/widgets/kguiutils.cpp
+++ b/kmymoney2/widgets/kguiutils.cpp
@@ -82,7 +82,7 @@ void kMandatoryFieldGroup::add(TQWidget *widget)
this, TQT_SLOT(changed()));
else {
- qWarning("MandatoryFieldGroup: unsupported class %s",
+ tqWarning("MandatoryFieldGroup: unsupported class %s",
widget->className());
return;
}
diff --git a/kmymoney2/widgets/kmymoneyaccountcombo.cpp b/kmymoney2/widgets/kmymoneyaccountcombo.cpp
index e37311c..3278db5 100644
--- a/kmymoney2/widgets/kmymoneyaccountcombo.cpp
+++ b/kmymoney2/widgets/kmymoneyaccountcombo.cpp
@@ -86,7 +86,7 @@ void KMyMoneyAccountCombo::setSelected(const TQString& id)
MyMoneyAccount acc = MyMoneyFile::instance()->account(id);
setSelected(acc);
} catch(MyMoneyException *e) {
- qDebug("Account '%s' not found in %s(%d)", id.data(), __FILE__, __LINE__);
+ tqDebug("Account '%s' not found in %s(%d)", id.data(), __FILE__, __LINE__);
delete e;
}
} else {
diff --git a/kmymoney2/widgets/kmymoneydateinput.cpp b/kmymoney2/widgets/kmymoneydateinput.cpp
index 9203a76..9ae13ec 100644
--- a/kmymoney2/widgets/kmymoneydateinput.cpp
+++ b/kmymoney2/widgets/kmymoneydateinput.cpp
@@ -230,7 +230,7 @@ void kMyMoneyDateInput::resizeEvent(TQResizeEvent* ev)
m_dateButton->setMaximumWidth(ev->size().height());
dateEdit->setMaximumHeight(ev->size().height());
- // qDebug("Received resize-event %d,%d", ev->size().width(), ev->size().height());
+ // tqDebug("Received resize-event %d,%d", ev->size().width(), ev->size().height());
}
diff --git a/kmymoney2/widgets/kmymoneypriceview.cpp b/kmymoney2/widgets/kmymoneypriceview.cpp
index 091e255..851ca02 100644
--- a/kmymoney2/widgets/kmymoneypriceview.cpp
+++ b/kmymoney2/widgets/kmymoneypriceview.cpp
@@ -312,7 +312,7 @@ void KMyMoneyPriceView::slotDeletePrice(void)
MyMoneyFile::instance()->removePrice(item->price());
ft.commit();
} catch(MyMoneyException *e) {
- qDebug("Cannot delete price");
+ tqDebug("Cannot delete price");
delete e;
}
}
diff --git a/kmymoney2/widgets/register.cpp b/kmymoney2/widgets/register.cpp
index ef1c956..5a0148c 100644
--- a/kmymoney2/widgets/register.cpp
+++ b/kmymoney2/widgets/register.cpp
@@ -204,7 +204,7 @@ bool ItemPtrVector::item_cmp(RegisterItem* i1, RegisterItem* i2)
break;
default:
- qDebug("Invalid sort key %d", *it);
+ tqDebug("Invalid sort key %d", *it);
break;
}
@@ -449,7 +449,7 @@ TypeGroupMarker::TypeGroupMarker(Register* parent, CashFlowDirection dir, MyMone
}
break;
default:
- qDebug("Unknown CashFlowDirection %d for TypeGroupMarker constructor", dir);
+ tqDebug("Unknown CashFlowDirection %d for TypeGroupMarker constructor", dir);
break;
}
}
@@ -511,7 +511,7 @@ void RegisterToolTip::maybeTip(const TQPoint& pos)
return;
TQPoint cpos = m_register->viewportToContents(pos);
- // qDebug("RegisterToolTip::mayBeTip(%d,%d)", cpos.x(), cpos.y());
+ // tqDebug("RegisterToolTip::mayBeTip(%d,%d)", cpos.x(), cpos.y());
int row = m_register->rowAt(cpos.y());
int col = m_register->columnAt(cpos.x());
RegisterItem* item = m_register->itemAtRow(row);
@@ -521,8 +521,8 @@ void RegisterToolTip::maybeTip(const TQPoint& pos)
TQPoint relPos(cpos.x() - m_register->columnPos(0), cpos.y() - m_register->rowPos(item->startRow()));
row = row - item->startRow();
- // qDebug("row = %d, col = %d", row, col);
- // qDebug("relpos = %d,%d", relPos.x(), relPos.y());
+ // tqDebug("row = %d, col = %d", row, col);
+ // tqDebug("relpos = %d,%d", relPos.x(), relPos.y());
TQString msg;
TQRect rect;
if(!item->maybeTip(cpos, row, col, rect, msg))
@@ -625,15 +625,15 @@ void Register::dragMoveEvent(TQDragMoveEvent* event)
void Register::dropEvent(TQDropEvent* event)
{
- qDebug("Register::dropEvent");
+ tqDebug("Register::dropEvent");
if ( KURLDrag::canDecode(event) ) {
event->ignore();
Transaction* t = dropTransaction(event->pos());
if(t && !t->isScheduled()) {
- qDebug("Drop was ok");
+ tqDebug("Drop was ok");
KURL::List urls;
KURLDrag::decode(event, urls);
- qDebug("List is '%s'", urls.toStringList().join(";").data());
+ tqDebug("List is '%s'", urls.toStringList().join(";").data());
event->accept();
}
}
@@ -667,7 +667,7 @@ void Register::slotAutoColumnSizing(int section)
}
size += TQString("%1").arg((columnWidth(i) * 100) / w);
}
- qDebug("size = %s", size.data());
+ tqDebug("size = %s", size.data());
m_account.setValue("kmm-ledger-column-width", size);
}
#endif
@@ -1180,7 +1180,7 @@ void Register::updateRegister(bool forceUpdateRowHeight)
int Register::rowHeightHint(void) const
{
if(!m_rowHeightHint) {
- qDebug("Register::rowHeightHint(): m_rowHeightHint is zero!!");
+ tqDebug("Register::rowHeightHint(): m_rowHeightHint is zero!!");
}
return m_rowHeightHint;
}
@@ -1189,11 +1189,11 @@ void Register::paintCell(TQPainter* painter, int row, int col, const TQRect& r,
{
// determine the item that we need to paint in the row and call it's paintRegisterCell() method
if((row < 0) || ((unsigned)row > m_itemIndex.size())) {
- qDebug("Register::paintCell: row %d out of bounds %d", row, (int)m_itemIndex.size());
+ tqDebug("Register::paintCell: row %d out of bounds %d", row, (int)m_itemIndex.size());
return;
}
- // qDebug("paintCell(%d,%d)", row, col);
+ // tqDebug("paintCell(%d,%d)", row, col);
RegisterItem* const item = m_itemIndex[row];
item->paintRegisterCell(painter, row - item->startRow(), col, r, selected, cg);
}
@@ -1415,7 +1415,7 @@ void Register::repaintItems(RegisterItem* first, RegisterItem* last)
if(last == 0)
last = first;
- // qDebug("repaintItems from row %d to row %d", first->startRow(), last->startRow()+last->numRowsRegister()-1);
+ // tqDebug("repaintItems from row %d to row %d", first->startRow(), last->startRow()+last->numRowsRegister()-1);
// the following code is based on code I found in
// TQTable::cellGeometry() and TQTable::updateCell() (ipwizard)
@@ -1877,7 +1877,7 @@ TQWidget* Register::cellWidget(int row, int col) const
if(row > numRows() - 1 || col > numCols() - 1) {
if(numRows() && numCols())
- qWarning("Register::cellWidget(%d,%d) out of bounds (%d,%d)", row, col, numRows(), numCols());
+ tqWarning("Register::cellWidget(%d,%d) out of bounds (%d,%d)", row, col, numRows(), numCols());
return 0;
}
@@ -1897,7 +1897,7 @@ TQWidget* Register::cellWidget(int row, int col) const
void Register::insertWidget(int row, int col, TQWidget* w)
{
if(row < 0 || col < 0 || row > numRows() - 1 || col > numCols() - 1) {
- qWarning("Register::insertWidget(%d,%d) out of bounds", row, col);
+ tqWarning("Register::insertWidget(%d,%d) out of bounds", row, col);
return;
}
@@ -1908,7 +1908,7 @@ void Register::insertWidget(int row, int col, TQWidget* w)
void Register::clearCellWidget(int row, int col)
{
if(row < 0 || col < 0 || row > numRows() - 1 || col > numCols() - 1) {
- qWarning("Register::clearCellWidget(%d,%d) out of bounds", row, col);
+ tqWarning("Register::clearCellWidget(%d,%d) out of bounds", row, col);
return;
}
@@ -2243,7 +2243,7 @@ Transaction* Register::transactionFactory(Register *parent, const MyMoneyTransac
case MyMoneyAccount::MoneyMarket:
case MyMoneyAccount::Stock:
default:
- qDebug("Register::transactionFactory: invalid accountTypeE %d", parent->account().accountType());
+ tqDebug("Register::transactionFactory: invalid accountTypeE %d", parent->account().accountType());
break;
}
return t;
diff --git a/kmymoney2/widgets/transaction.cpp b/kmymoney2/widgets/transaction.cpp
index b4ac7cd..00d0f56 100644
--- a/kmymoney2/widgets/transaction.cpp
+++ b/kmymoney2/widgets/transaction.cpp
@@ -615,7 +615,7 @@ void Transaction::arrangeWidget(TQTable* tbl, int row, int col, TQWidget* w) con
// events will be directed to the edit widget
w->removeEventFilter(tbl);
} else
- qDebug("No widget for %d,%d", row, col);
+ tqDebug("No widget for %d,%d", row, col);
}
bool Transaction::haveNumberField(void) const
@@ -658,10 +658,10 @@ bool Transaction::maybeTip(const TQPoint& cpos, int row, int col, TQRect& r, TQS
// check for detail column in row 0 of the transaction for a possible exclamation mark
r = m_parent->cellGeometry(m_startRow + 0, col);
- // qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
+ // tqDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
r.setBottomLeft(TQPoint(r.x() + (r.width() - h), r.y() + h));
- // qDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
- // qDebug("p is in r = %d", r.contains(cpos));
+ // tqDebug("r is %d,%d,%d,%d", r.x(), r.y(), r.width(), r.height());
+ // tqDebug("p is in r = %d", r.contains(cpos));
if(r.contains(cpos) && m_erronous) {
if(m_transaction.splits().count() < 2) {
msg = TQString("<qt>%1</qt>").arg(i18n("Transaction is missing a category assignment."));
diff --git a/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp b/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp
index 9d9b109..6d3bcdc 100644
--- a/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp
+++ b/kmymoney2/wizards/newaccountwizard/knewaccountwizard.cpp
@@ -1039,7 +1039,7 @@ void LoanDetailsPage::slotCalculate(void)
if((moneyBorrowed && val < 0 && fabsl(val) > fabsl(calc.payment()))
|| (moneyLend && val > 0 && fabs(val) > fabs(calc.payment()))) {
// case a)
- qDebug("Future Value is %Lf", val);
+ tqDebug("Future Value is %Lf", val);
throw new MYMONEYEXCEPTION("incorrect fincancial calculation");
} else if((moneyBorrowed && val < 0 && fabsl(val) <= fabsl(calc.payment()))
@@ -1100,7 +1100,7 @@ int LoanDetailsPage::term(void) const
break;
default:
- qDebug("Unknown term unit %d in LoanDetailsPage::term(). Using payments.", m_termUnit->currentItem());
+ tqDebug("Unknown term unit %d in LoanDetailsPage::term(). Using payments.", m_termUnit->currentItem());
// tricky fall through here
case MyMoneySchedule::OCCUR_ONCE: // payments