mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-28 11:42:42 +01:00
* Fixed bogus column widths when loading a flat collection view.
This commit is contained in:
parent
0e04e8970b
commit
3ad6826779
@ -61,7 +61,7 @@ CollectionView::setTrackModel( TrackModel* model )
|
||||
{
|
||||
TrackView::setTrackModel( model );
|
||||
setColumnHidden( TrackModel::Score, true ); // Hide age column per default
|
||||
setGuid( "collectionview" );
|
||||
setGuid( QString( "collectionview/%1" ).arg( model->columnCount() ) );
|
||||
|
||||
setSortingEnabled( true );
|
||||
sortByColumn( 0, Qt::AscendingOrder );
|
||||
|
@ -71,7 +71,7 @@ public:
|
||||
virtual int trackCount() const { return rowCount( QModelIndex() ); }
|
||||
|
||||
virtual int rowCount( const QModelIndex& parent ) const;
|
||||
virtual int columnCount( const QModelIndex& parent ) const;
|
||||
virtual int columnCount( const QModelIndex& parent = QModelIndex() ) const;
|
||||
|
||||
virtual QVariant data( const QModelIndex& index, int role = Qt::DisplayRole ) const;
|
||||
virtual QVariant headerData( int section, Qt::Orientation orientation, int role ) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user