mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Use new Querylabel API.
This commit is contained in:
@@ -132,10 +132,11 @@ InfoBar::setDescription( const QString& s )
|
|||||||
ui->descriptionLabel->setText( s );
|
ui->descriptionLabel->setText( s );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InfoBar::setDescription( const artist_ptr& artist )
|
InfoBar::setDescription( const artist_ptr& artist )
|
||||||
{
|
{
|
||||||
m_queryLabel->setQuery( Query::get( artist->name(), QString(), QString() ) );
|
m_queryLabel->setArtist( artist );
|
||||||
m_queryLabel->setExtraContentsMargins( 4, 0, 0, 0 );
|
m_queryLabel->setExtraContentsMargins( 4, 0, 0, 0 );
|
||||||
|
|
||||||
if ( !m_queryLabel->isVisible() )
|
if ( !m_queryLabel->isVisible() )
|
||||||
@@ -151,16 +152,17 @@ InfoBar::setDescription( const artist_ptr& artist )
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
InfoBar::setDescription( const album_ptr& )
|
InfoBar::setDescription( const album_ptr& )
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InfoBar::artistClicked()
|
InfoBar::artistClicked()
|
||||||
{
|
{
|
||||||
if ( m_queryLabel && !m_queryLabel->query().isNull() )
|
if ( m_queryLabel && !m_queryLabel->artist().isNull() )
|
||||||
ViewManager::instance()->show( Artist::get( m_queryLabel->artist() ) );
|
ViewManager::instance()->show( m_queryLabel->artist() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -212,7 +214,6 @@ InfoBar::setUpdaters( const QList<PlaylistUpdaterInterface*>& updaters )
|
|||||||
newUpdaterWidgets << updater->configurationWidget();
|
newUpdaterWidgets << updater->configurationWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach ( QWidget* updaterWidget, m_updaterConfigurations )
|
foreach ( QWidget* updaterWidget, m_updaterConfigurations )
|
||||||
{
|
{
|
||||||
updaterWidget->hide();
|
updaterWidget->hide();
|
||||||
|
Reference in New Issue
Block a user