mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-22 05:33:32 +02:00
hide queue button for stations
and remove frames
This commit is contained in:
@@ -42,6 +42,9 @@ DynamicView::DynamicView( QWidget* parent )
|
||||
, m_checkOnCollapse( false )
|
||||
, m_fadebg( false )
|
||||
{
|
||||
setContentsMargins( 0, 0, 0, 0 );
|
||||
setFrameShape( QFrame::NoFrame );
|
||||
|
||||
m_fadeOutAnim.setDuration( FADE_LENGTH );
|
||||
m_fadeOutAnim.setCurveShape( QTimeLine::LinearCurve );
|
||||
m_fadeOutAnim.setFrameRange( 100, 0 );
|
||||
|
@@ -57,6 +57,7 @@ DynamicWidget::DynamicWidget( const Tomahawk::dynplaylist_ptr& playlist, QWidget
|
||||
{
|
||||
m_controls = new CollapsibleControls( this );
|
||||
m_layout->addWidget( m_controls );
|
||||
setContentsMargins( 0, 0, 0, 1 ); // to align the bottom with the bottom of the sourcelist
|
||||
|
||||
m_model = new DynamicModel( this );
|
||||
m_view = new DynamicView( this );
|
||||
|
@@ -176,6 +176,7 @@ PlaylistManager::show( const Tomahawk::playlist_ptr& playlist )
|
||||
m_currentInterface = view->proxyModel();
|
||||
}
|
||||
|
||||
m_queueView->show();
|
||||
m_infobar->setCaption( playlist->title() );
|
||||
m_infobar->setDescription( tr( "A playlist by %1" ).arg( playlist->author()->isLocal() ? tr( "you" ) : playlist->author()->friendlyName() ) );
|
||||
|
||||
@@ -209,6 +210,10 @@ PlaylistManager::show( const Tomahawk::dynplaylist_ptr& playlist )
|
||||
m_infobar->setCaption( playlist->title() );
|
||||
m_infobar->setDescription( tr( "A playlist by %1" ).arg( playlist->author()->isLocal() ? tr( "you" ) : playlist->author()->friendlyName() ) );
|
||||
|
||||
if( playlist->mode() == Tomahawk::OnDemand )
|
||||
m_queueView->hide();
|
||||
|
||||
|
||||
m_superCollectionVisible = false;
|
||||
m_statsAvailable = true;
|
||||
m_modesAvailable = false;
|
||||
@@ -250,6 +255,7 @@ PlaylistManager::show( const Tomahawk::artist_ptr& artist )
|
||||
m_currentInterface = view->proxyModel();
|
||||
}
|
||||
|
||||
m_queueView->show();
|
||||
m_infobar->setCaption( tr( "All tracks by %1" ).arg( artist->name() ) );
|
||||
m_infobar->setDescription( "" );
|
||||
|
||||
@@ -291,6 +297,7 @@ PlaylistManager::show( const Tomahawk::album_ptr& album )
|
||||
m_currentInterface = view->proxyModel();
|
||||
}
|
||||
|
||||
m_queueView->show();
|
||||
m_infobar->setCaption( tr( "All tracks on %1 by %2" ).arg( album->name() ).arg( album->artist()->name() ) );
|
||||
m_infobar->setDescription( "" );
|
||||
|
||||
@@ -366,6 +373,7 @@ PlaylistManager::show( const Tomahawk::collection_ptr& collection )
|
||||
else
|
||||
m_infobar->setCaption( tr( "Collection of %1" ).arg( collection->source()->friendlyName() ) );
|
||||
|
||||
m_queueView->show();
|
||||
m_superCollectionVisible = false;
|
||||
m_statsAvailable = ( m_currentMode == 0 );
|
||||
m_modesAvailable = true;
|
||||
@@ -398,6 +406,7 @@ PlaylistManager::show( const Tomahawk::source_ptr& source )
|
||||
m_infobar->setCaption( tr( "Info about %1" ).arg( source->isLocal() ? tr( "Your Collection" ) : source->friendlyName() ) );
|
||||
m_infobar->setDescription( "" );
|
||||
|
||||
m_queueView->show();
|
||||
m_stack->setCurrentWidget( m_currentInfoWidget );
|
||||
m_superCollectionVisible = false;
|
||||
m_statsAvailable = false;
|
||||
@@ -424,6 +433,7 @@ PlaylistManager::show( QWidget* widget, const QString& title, const QString& des
|
||||
m_infobar->setDescription( desc );
|
||||
m_infobar->setPixmap( pixmap );
|
||||
|
||||
m_queueView->show();
|
||||
m_superCollectionVisible = false;
|
||||
m_statsAvailable = false;
|
||||
m_modesAvailable = false;
|
||||
@@ -462,6 +472,7 @@ PlaylistManager::showSuperCollection()
|
||||
m_infobar->setCaption( tr( "Super Collection" ) );
|
||||
m_infobar->setDescription( tr( "All available tracks" ) );
|
||||
|
||||
m_queueView->show();
|
||||
m_superCollectionVisible = true;
|
||||
m_statsAvailable = ( m_currentMode == 0 );
|
||||
m_modesAvailable = true;
|
||||
|
Reference in New Issue
Block a user