aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiontablemodel.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-09-04 11:52:45 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-09-06 10:32:07 +0200
commit42018eff07d235930ca91fa9e76e7ac128183438 (patch)
treee90e584fb8643d63ee9c6083599b29b0ed48bded /src/qt/transactiontablemodel.cpp
parentd22d9753cc7175a7cf0ce440b96d83277747ecb9 (diff)
Bitcoin-Qt: Use qDebug() for printing to debug.log
- removes all usages of PrintDebugStringF from Qt code - ensure same format for all debug.log messages "functionname : Message"
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
-rw-r--r--src/qt/transactiontablemodel.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 9c040d5b63..d27288b6f1 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -17,6 +17,7 @@
#include <QTimer>
#include <QIcon>
#include <QDateTime>
+#include <QDebug>
// Amount column is right-aligned it contains numbers
static int column_alignments[] = {
@@ -67,7 +68,7 @@ public:
*/
void refreshWallet()
{
- OutputDebugStringF("refreshWallet\n");
+ qDebug() << "TransactionTablePriv::refreshWallet";
cachedWallet.clear();
{
LOCK(wallet->cs_wallet);
@@ -86,7 +87,7 @@ public:
*/
void updateWallet(const uint256 &hash, int status)
{
- OutputDebugStringF("updateWallet %s %i\n", hash.ToString().c_str(), status);
+ qDebug() << "TransactionTablePriv::updateWallet : " + QString::fromStdString(hash.ToString()) + " " + QString::number(status);
{
LOCK(wallet->cs_wallet);
@@ -114,20 +115,21 @@ public:
status = CT_DELETED; /* In model, but want to hide, treat as deleted */
}
- OutputDebugStringF(" inWallet=%i inModel=%i Index=%i-%i showTransaction=%i derivedStatus=%i\n",
- inWallet, inModel, lowerIndex, upperIndex, showTransaction, status);
+ qDebug() << " inWallet=" + QString::number(inWallet) + " inModel=" + QString::number(inModel) +
+ " Index=" + QString::number(lowerIndex) + "-" + QString::number(upperIndex) +
+ " showTransaction=" + QString::number(showTransaction) + " derivedStatus=" + QString::number(status);
switch(status)
{
case CT_NEW:
if(inModel)
{
- OutputDebugStringF("Warning: updateWallet: Got CT_NEW, but transaction is already in model\n");
+ qDebug() << "TransactionTablePriv::updateWallet : Warning: Got CT_NEW, but transaction is already in model";
break;
}
if(!inWallet)
{
- OutputDebugStringF("Warning: updateWallet: Got CT_NEW, but transaction is not in wallet\n");
+ qDebug() << "TransactionTablePriv::updateWallet : Warning: Got CT_NEW, but transaction is not in wallet";
break;
}
if(showTransaction)
@@ -151,7 +153,7 @@ public:
case CT_DELETED:
if(!inModel)
{
- OutputDebugStringF("Warning: updateWallet: Got CT_DELETED, but transaction is not in model\n");
+ qDebug() << "TransactionTablePriv::updateWallet : Warning: Got CT_DELETED, but transaction is not in model";
break;
}
// Removed -- remove entire transaction from table