Browse files

* Hide Filesize column by default.

  • Loading branch information...
1 parent 2bc2d8c commit a738ab6b0af650efc65b6780a4749d7b94cb16ee @muesli muesli committed Nov 14, 2012
Showing with 4 additions and 0 deletions.
  1. +1 −0 src/libtomahawk/playlist/FlexibleView.cpp
  2. +3 −0 src/libtomahawk/playlist/PlaylistView.cpp
View
1 src/libtomahawk/playlist/FlexibleView.cpp
@@ -82,6 +82,7 @@ FlexibleView::FlexibleView( QWidget* parent )
m_detailedView->setPlaylistInterface( m_playlistInterface );
m_detailedView->setColumnHidden( PlayableModel::Age, true ); // Hide age column per default
+ m_detailedView->setColumnHidden( PlayableModel::Filesize, true ); // Hide filesize column per default
m_detailedView->setColumnHidden( PlayableModel::Composer, true ); // Hide composer column per default
PlaylistLargeItemDelegate* del = new PlaylistLargeItemDelegate( PlaylistLargeItemDelegate::LovedTracks, m_trackView, m_trackView->proxyModel() );
View
3 src/libtomahawk/playlist/PlaylistView.cpp
@@ -59,6 +59,7 @@ PlaylistView::setPlaylistModel( PlaylistModel* model )
TrackView::setPlayableModel( m_model );
setColumnHidden( PlayableModel::Age, true ); // Hide age column per default
+ setColumnHidden( PlayableModel::Filesize, true ); // Hide filesize column per default
setColumnHidden( PlayableModel::Composer, true ); // Hide composer column per default
connect( m_model, SIGNAL( playlistDeleted() ), SLOT( onDeleted() ) );
@@ -135,6 +136,8 @@ PlaylistView::onChanged()
setEmptyTip( tr( "This playlist is currently empty. Add some tracks to it and enjoy the music!" ) );
m_model->finishLoading();
+ setGuid( proxyModel()->guid() );
+
if ( !m_model->playlist().isNull() && ViewManager::instance()->currentPage() == this )
emit nameChanged( m_model->playlist()->title() );
}

0 comments on commit a738ab6

Please sign in to comment.