summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/mymoneyqifreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/converter/mymoneyqifreader.cpp')
-rw-r--r--kmymoney2/converter/mymoneyqifreader.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/converter/mymoneyqifreader.cpp b/kmymoney2/converter/mymoneyqifreader.cpp
index 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) {