mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Change the position of the albumpos column to be next to the album
This commit is contained in:
parent
65709e92ff
commit
39bbd128c2
@ -88,7 +88,7 @@ TrackHeader::checkState()
|
||||
else
|
||||
{
|
||||
QList< double > m_columnWeights;
|
||||
m_columnWeights << 0.18 << 0.18 << 0.17 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.10 << 0.05; // << 0.05;
|
||||
m_columnWeights << 0.18 << 0.18 << 0.17 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.05 << 0.10; // << 0.05;
|
||||
|
||||
for ( int i = 0; i < count() - 1; i++ )
|
||||
{
|
||||
|
@ -221,7 +221,7 @@ TrackModel::headerData( int section, Qt::Orientation orientation, int role ) con
|
||||
{
|
||||
Q_UNUSED( orientation );
|
||||
QStringList headers;
|
||||
headers << tr( "Artist" ) << tr( "Title" ) << tr( "Album" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Age" ) << tr( "Year" ) << tr( "Size" ) << tr( "Origin" ) << tr( "Score" ) << tr( "Track" );
|
||||
headers << tr( "Artist" ) << tr( "Title" ) << tr( "Album" ) << tr( "Track" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Age" ) << tr( "Year" ) << tr( "Size" ) << tr( "Origin" ) << tr( "Score" );
|
||||
if ( role == Qt::DisplayRole && section >= 0 )
|
||||
{
|
||||
return headers.at( section );
|
||||
|
@ -43,14 +43,14 @@ public:
|
||||
Artist = 0,
|
||||
Track = 1,
|
||||
Album = 2,
|
||||
Duration = 3,
|
||||
Bitrate = 4,
|
||||
Age = 5,
|
||||
Year = 6,
|
||||
Filesize = 7,
|
||||
Origin = 8,
|
||||
Score = 9,
|
||||
AlbumPos = 10
|
||||
AlbumPos = 3,
|
||||
Duration = 4,
|
||||
Bitrate = 5,
|
||||
Age = 6,
|
||||
Year = 7,
|
||||
Filesize = 8,
|
||||
Origin = 9,
|
||||
Score = 10,
|
||||
};
|
||||
|
||||
explicit TrackModel( QObject* parent = 0 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user