mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-10 16:14:40 +02:00
Change the position of the albumpos column to be next to the album
This commit is contained in:
@@ -88,7 +88,7 @@ TrackHeader::checkState()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
QList< double > m_columnWeights;
|
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++ )
|
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 );
|
Q_UNUSED( orientation );
|
||||||
QStringList headers;
|
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 )
|
if ( role == Qt::DisplayRole && section >= 0 )
|
||||||
{
|
{
|
||||||
return headers.at( section );
|
return headers.at( section );
|
||||||
|
@@ -43,14 +43,14 @@ public:
|
|||||||
Artist = 0,
|
Artist = 0,
|
||||||
Track = 1,
|
Track = 1,
|
||||||
Album = 2,
|
Album = 2,
|
||||||
Duration = 3,
|
AlbumPos = 3,
|
||||||
Bitrate = 4,
|
Duration = 4,
|
||||||
Age = 5,
|
Bitrate = 5,
|
||||||
Year = 6,
|
Age = 6,
|
||||||
Filesize = 7,
|
Year = 7,
|
||||||
Origin = 8,
|
Filesize = 8,
|
||||||
Score = 9,
|
Origin = 9,
|
||||||
AlbumPos = 10
|
Score = 10,
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit TrackModel( QObject* parent = 0 );
|
explicit TrackModel( QObject* parent = 0 );
|
||||||
|
Reference in New Issue
Block a user