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