1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-24 20:03:07 +01:00

Hide generator combobox until we have more than one generator

This commit is contained in:
Leo Franchi 2011-08-05 15:36:04 -04:00
parent 5d5b5fa3af
commit b2deebe0c2

View File

@ -59,6 +59,9 @@ DynamicSetupWidget::DynamicSetupWidget( const Tomahawk::dynplaylist_ptr& playlis
m_generatorCombo->setLabel( playlist->generator()->type().replace( 0, 1, playlist->generator()->type().at( 0 ).toUpper() ) );
m_layout->addWidget( m_generatorCombo );
// TODO until there are more... no point in choices
m_headerText->hide();
m_generatorCombo->hide();
m_generateButton = new QPushButton( tr( "Generate" ), this );
m_generateButton->setAttribute( Qt::WA_LayoutUsesWidgetRect );
@ -76,7 +79,8 @@ DynamicSetupWidget::DynamicSetupWidget( const Tomahawk::dynplaylist_ptr& playlis
else
m_layout->addWidget( m_genNumber );
m_layout->addSpacing( 30 );
if( m_playlist->mode() == Static )
m_layout->addSpacing( 30 );
m_logo = new QLabel( this );
if( !m_playlist->generator()->logo().isNull() ) {