1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 22:56:42 +02:00

Enable AccountModel debug spam.

This commit is contained in:
Teo Mrnjavac
2013-05-23 07:33:58 +02:00
parent 26399d3603
commit 2ec10fc80f

View File

@@ -35,7 +35,7 @@
using namespace Tomahawk; using namespace Tomahawk;
using namespace Accounts; using namespace Accounts;
#define ACCOUNTMODEL_DEBUG 0 #define ACCOUNTMODEL_DEBUG 1
AccountModel::AccountModel( QObject* parent ) AccountModel::AccountModel( QObject* parent )
: QAbstractListModel( parent ) : QAbstractListModel( parent )
@@ -74,6 +74,7 @@ AccountModel::loadData()
QList< AccountFactory* > factories = AccountManager::instance()->factories(); QList< AccountFactory* > factories = AccountManager::instance()->factories();
QList< Account* > allAccounts = AccountManager::instance()->accounts(); QList< Account* > allAccounts = AccountManager::instance()->accounts();
#if ACCOUNTMODEL_DEBUG #if ACCOUNTMODEL_DEBUG
qDebug() << Q_FUNC_INFO;
qDebug() << "All accounts:"; qDebug() << "All accounts:";
foreach ( Account* acct, allAccounts ) foreach ( Account* acct, allAccounts )
qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId(); qDebug() << acct->accountFriendlyName() << "\t" << acct->accountId();