1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-10-04 09:31:41 +02:00

Added icons to toolbar, but also a debug commit for a nasty crash.

This commit is contained in:
Teo Mrnjavac
2012-08-14 20:54:38 +02:00
parent eb559dd0a0
commit ef5efacade
7 changed files with 138 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
#include "AccountModelFactoryProxy.h"
#include <QDebug>
using namespace Tomahawk;
using namespace Accounts;
@@ -26,6 +28,7 @@ AccountModelFactoryProxy::AccountModelFactoryProxy( QObject* parent )
, m_filterEnabled( false )
, m_filterRowType( AccountModel::TopLevelFactory )
{
setDynamicSortFilter( true );
}
@@ -37,6 +40,9 @@ AccountModelFactoryProxy::filterAcceptsRow( int sourceRow, const QModelIndex& so
const QModelIndex idx = sourceModel()->index( sourceRow, 0, sourceParent );
const Qt::CheckState checkState = static_cast< Qt::CheckState >( idx.data( Qt::CheckStateRole ).value< int >() );
qDebug() << "FILTERING";
qDebug() << "checkState is " << checkState;
if( checkState == Qt::Unchecked ) //if the service is not even enabled
return false;