mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-21 00:12:06 +02:00
set initial match data when creating the echonest control too
This commit is contained in:
parent
64be0a4ea4
commit
8baf952854
@ -114,6 +114,7 @@ Tomahawk::EchonestControl::updateWidgets()
|
||||
match->addItem( "Limit To", Echonest::DynamicPlaylist::ArtistType );
|
||||
match->addItem( "Similar To", Echonest::DynamicPlaylist::ArtistRadioType );
|
||||
m_matchString = match->currentText();
|
||||
m_matchData = match->itemData( match->currentIndex() ).toString();
|
||||
|
||||
input->setPlaceholderText( "Artist name" );
|
||||
input->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Fixed );
|
||||
|
@ -163,7 +163,7 @@ DynamicControlList::onShown( QWidget* w )
|
||||
m_layout->addWidget( control );
|
||||
}
|
||||
|
||||
m_layout->addLayout( m_collapseLayout );
|
||||
m_layout->addItem( m_collapseLayout );
|
||||
m_layout->setStretchFactor( m_collapseLayout, 1 );
|
||||
|
||||
AnimatedWidget::onShown( w );
|
||||
@ -174,7 +174,6 @@ void DynamicControlList::addNewControl()
|
||||
dyncontrol_ptr control = m_generator->createControl();
|
||||
m_controls.append( new DynamicControlWidget( control, m_isLocal, this ) );
|
||||
m_layout->addWidget( m_controls.last() );
|
||||
connect( m_controls.last(), SIGNAL( addNewControl() ), this, SLOT( addNewControl() ) );
|
||||
connect( m_controls.last(), SIGNAL( removeControl() ), this, SLOT( removeControl() ) );
|
||||
connect( m_controls.last(), SIGNAL( changed() ), this, SLOT( controlChanged() ) );
|
||||
|
||||
|
@ -190,7 +190,6 @@ DynamicControlWidget::mouseMoveEvent(QMouseEvent* ev)
|
||||
enterEvent( ev );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
DynamicControlWidget::paintEvent(QPaintEvent* )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user