1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-20 07:52:30 +02:00

* Fixed header resizing issues, which were caused by varying column counts.

This commit is contained in:
Christian Muehlhaeuser 2011-08-15 04:59:44 +02:00
parent e159698bfd
commit ae1095217c
3 changed files with 9 additions and 2 deletions

View File

@ -338,3 +338,10 @@ ArtistView::jumpToCurrentTrack()
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
return true;
}
QString
ArtistView::guid() const
{
return QString( "artistview/%1" ).arg( m_model->columnCount( QModelIndex() ) );
}

View File

@ -64,7 +64,7 @@ public:
virtual bool jumpToCurrentTrack();
QString guid() const { return QString( "ArtistView" ); }
QString guid() const;
public slots:
void onItemActivated( const QModelIndex& index );

View File

@ -63,7 +63,7 @@ PlaylistView::setPlaylistModel( PlaylistModel* model )
setColumnHidden( TrackModel::Age, true ); // Hide age column per default
if ( !m_model->playlist().isNull() )
setGuid( QString( "playlistview/%1" ).arg( m_model->playlist()->guid() ) );
setGuid( QString( "playlistview/%1/%2" ).arg( m_model->columnCount() ).arg( m_model->playlist()->guid() ) );
else
{
setGuid( QString( "playlistview/%1" ).arg( m_model->columnCount() ) );