mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Fixed header resizing issues, which were caused by varying column counts.
This commit is contained in:
@@ -338,3 +338,10 @@ ArtistView::jumpToCurrentTrack()
|
|||||||
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
|
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString
|
||||||
|
ArtistView::guid() const
|
||||||
|
{
|
||||||
|
return QString( "artistview/%1" ).arg( m_model->columnCount( QModelIndex() ) );
|
||||||
|
}
|
||||||
|
@@ -64,7 +64,7 @@ public:
|
|||||||
|
|
||||||
virtual bool jumpToCurrentTrack();
|
virtual bool jumpToCurrentTrack();
|
||||||
|
|
||||||
QString guid() const { return QString( "ArtistView" ); }
|
QString guid() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void onItemActivated( const QModelIndex& index );
|
void onItemActivated( const QModelIndex& index );
|
||||||
|
@@ -63,7 +63,7 @@ PlaylistView::setPlaylistModel( PlaylistModel* model )
|
|||||||
setColumnHidden( TrackModel::Age, true ); // Hide age column per default
|
setColumnHidden( TrackModel::Age, true ); // Hide age column per default
|
||||||
|
|
||||||
if ( !m_model->playlist().isNull() )
|
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
|
else
|
||||||
{
|
{
|
||||||
setGuid( QString( "playlistview/%1" ).arg( m_model->columnCount() ) );
|
setGuid( QString( "playlistview/%1" ).arg( m_model->columnCount() ) );
|
||||||
|
Reference in New Issue
Block a user