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:
parent
ddf030037e
commit
9ebe155313
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user