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

Clean up PlayableProxyModel::columnCount

This commit is contained in:
Dominik Schmidt 2016-01-18 03:18:44 +01:00
parent ddf030037e
commit 9ebe155313

View File

@ -607,25 +607,7 @@ PlayableProxyModel::columnCount( const QModelIndex& parent ) const
{
Q_UNUSED( parent );
switch ( m_style )
{
case SingleColumn:
return 1;
break;
case Collection:
return m_headerStyle[ Collection ].length();
break;
case Locker:
return m_headerStyle[ Locker ].length();
break;
case Detailed:
default:
return 12;
break;
}
return m_headerStyle[ m_style ].length();
}