mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Clean up PlayableProxyModel::columnCount
This commit is contained in:
@@ -607,25 +607,7 @@ PlayableProxyModel::columnCount( const QModelIndex& parent ) const
|
|||||||
{
|
{
|
||||||
Q_UNUSED( parent );
|
Q_UNUSED( parent );
|
||||||
|
|
||||||
switch ( m_style )
|
return m_headerStyle[ m_style ].length();
|
||||||
{
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user