diff --git a/src/libtomahawk/playlist/trackheader.cpp b/src/libtomahawk/playlist/trackheader.cpp index 35bb2cb43..38893e85b 100644 --- a/src/libtomahawk/playlist/trackheader.cpp +++ b/src/libtomahawk/playlist/trackheader.cpp @@ -88,7 +88,7 @@ TrackHeader::checkState() else { QList< double > m_columnWeights; - m_columnWeights << 0.20 << 0.20 << 0.18 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.10; // << 0.05; + m_columnWeights << 0.18 << 0.18 << 0.17 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.10 << 0.05; // << 0.05; for ( int i = 0; i < count() - 1; i++ ) { diff --git a/src/libtomahawk/playlist/trackmodel.cpp b/src/libtomahawk/playlist/trackmodel.cpp index 96c7cbc93..458c618f7 100644 --- a/src/libtomahawk/playlist/trackmodel.cpp +++ b/src/libtomahawk/playlist/trackmodel.cpp @@ -93,7 +93,7 @@ TrackModel::columnCount( const QModelIndex& parent ) const case Detailed: default: - return 10; + return 11; break; } } @@ -205,6 +205,10 @@ TrackModel::data( const QModelIndex& index, int role ) const case Score: return query->results().first()->score(); break; + + case AlbumPos: + return query->results().first()->albumpos(); + break; } } @@ -217,7 +221,7 @@ TrackModel::headerData( int section, Qt::Orientation orientation, int role ) con { Q_UNUSED( orientation ); QStringList headers; - headers << tr( "Artist" ) << tr( "Track" ) << tr( "Album" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Age" ) << tr( "Year" ) << tr( "Size" ) << tr( "Origin" ) << tr( "Score" ); + headers << tr( "Artist" ) << tr( "Title" ) << tr( "Album" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Age" ) << tr( "Year" ) << tr( "Size" ) << tr( "Origin" ) << tr( "Score" ) << tr( "Track" ); if ( role == Qt::DisplayRole && section >= 0 ) { return headers.at( section ); diff --git a/src/libtomahawk/playlist/trackmodel.h b/src/libtomahawk/playlist/trackmodel.h index 6266d41d2..9a81c970f 100644 --- a/src/libtomahawk/playlist/trackmodel.h +++ b/src/libtomahawk/playlist/trackmodel.h @@ -49,7 +49,8 @@ public: Year = 6, Filesize = 7, Origin = 8, - Score = 9 + Score = 9, + AlbumPos = 10 }; explicit TrackModel( QObject* parent = 0 );