diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-09-06 03:26:02 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-09-06 03:26:02 -0700 |
| commit | 9d6b60cf50ffcf2cd35659afa1a7f5dd5bfa06e3 (patch) | |
| tree | e90e584fb8643d63ee9c6083599b29b0ed48bded /src/qt/clientmodel.cpp | |
| parent | Merge pull request #2978 from gmaxwell/rpc_settxfee_doc (diff) | |
| parent | Bitcoin-Qt: Use qDebug() for printing to debug.log (diff) | |
| download | discoin-9d6b60cf50ffcf2cd35659afa1a7f5dd5bfa06e3.tar.xz discoin-9d6b60cf50ffcf2cd35659afa1a7f5dd5bfa06e3.zip | |
Merge pull request #2973 from Diapolo/qDebug
Bitcoin-Qt: Use qDebug() for printing to debug.log
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 5cf4dd811..f7dd8adb6 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -13,6 +13,7 @@ #include <QDateTime> #include <QTimer> +#include <QDebug> static const int64 nClientStartupTime = GetTime(); @@ -180,14 +181,14 @@ static void NotifyBlocksChanged(ClientModel *clientmodel) static void NotifyNumConnectionsChanged(ClientModel *clientmodel, int newNumConnections) { - // Too noisy: OutputDebugStringF("NotifyNumConnectionsChanged %i\n", newNumConnections); + // Too noisy: qDebug() << "NotifyNumConnectionsChanged : " + QString::number(newNumConnections); QMetaObject::invokeMethod(clientmodel, "updateNumConnections", Qt::QueuedConnection, Q_ARG(int, newNumConnections)); } static void NotifyAlertChanged(ClientModel *clientmodel, const uint256 &hash, ChangeType status) { - OutputDebugStringF("NotifyAlertChanged %s status=%i\n", hash.GetHex().c_str(), status); + qDebug() << "NotifyAlertChanged : " + QString::fromStdString(hash.GetHex()) + " status=" + QString::number(status); QMetaObject::invokeMethod(clientmodel, "updateAlert", Qt::QueuedConnection, Q_ARG(QString, QString::fromStdString(hash.GetHex())), Q_ARG(int, status)); |