1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 07:36:48 +02: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 c6eee1324b
commit 9fbbcb6b53

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,6 +79,7 @@ DynamicSetupWidget::DynamicSetupWidget( const Tomahawk::dynplaylist_ptr& playlis
else
m_layout->addWidget( m_genNumber );
if( m_playlist->mode() == Static )
m_layout->addSpacing( 30 );
m_logo = new QLabel( this );