1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-20 04:41:36 +02:00

* Fix column widths, size constraints.

This commit is contained in:
Christian Muehlhaeuser
2010-11-16 07:06:02 +01:00
parent 6a508430c4
commit ab2d21a692
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ PlaylistManager::PlaylistManager( QObject* parent )
, m_currentMode( 0 ) , m_currentMode( 0 )
, m_superCollectionVisible( true ) , m_superCollectionVisible( true )
{ {
m_widget->setMinimumWidth( 620 ); m_widget->setMinimumWidth( 690 );
m_superCollectionView = new CollectionView(); m_superCollectionView = new CollectionView();
m_superCollectionFlatModel = new CollectionFlatModel( m_superCollectionView ); m_superCollectionFlatModel = new CollectionFlatModel( m_superCollectionView );

View File

@@ -177,7 +177,7 @@ QVariant
TrackModel::headerData( int section, Qt::Orientation orientation, int role ) const TrackModel::headerData( int section, Qt::Orientation orientation, int role ) const
{ {
QStringList headers; QStringList headers;
headers << tr( "Artist" ) << tr( "Track" ) << tr( "Album" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Last Modified" ) << tr( "Origin" ); headers << tr( "Artist" ) << tr( "Track" ) << tr( "Album" ) << tr( "Duration" ) << tr( "Bitrate" ) << tr( "Age" ) << tr( "Origin" );
if ( orientation == Qt::Horizontal && role == Qt::DisplayRole && section >= 0 ) if ( orientation == Qt::Horizontal && role == Qt::DisplayRole && section >= 0 )
{ {
return headers.at( section ); return headers.at( section );

View File

@@ -85,7 +85,7 @@ TrackView::restoreColumnsState()
if ( list.count() != 7 ) // FIXME: const if ( list.count() != 7 ) // FIXME: const
{ {
m_columnWeights << 0.19 << 0.25 << 0.18 << 0.07 << 0.07 << 0.11 << 0.13; m_columnWeights << 0.19 << 0.24 << 0.18 << 0.07 << 0.07 << 0.11 << 0.14;
} }
else else
{ {