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:
parent
e159698bfd
commit
ae1095217c
@ -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() ) );
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
|
||||
virtual bool jumpToCurrentTrack();
|
||||
|
||||
QString guid() const { return QString( "ArtistView" ); }
|
||||
QString guid() const;
|
||||
|
||||
public slots:
|
||||
void onItemActivated( const QModelIndex& index );
|
||||
|
@ -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() ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user