Commit 530f6a69 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MediaLibrary: Update the filtered media when the filter type is changed

parent 9f93d966
......@@ -50,6 +50,8 @@ MediaLibrary::MediaLibrary(QWidget *parent) : QWidget(parent),
this, SLOT( clearFilter() ) );
connect( nav, SIGNAL( viewChanged( ViewController* ) ),
this, SLOT( viewChanged( ViewController* ) ) );
connect( m_ui->filterType, SIGNAL( currentIndexChanged( int ) ),
this, SLOT( filterTypeChanged() ) );
}
void
......@@ -111,3 +113,9 @@ MediaLibrary::filterByTags( const Clip *clip, const QString &filter )
{
return ( clip->matchMetaTag( filter ) );
}
void
MediaLibrary::filterTypeChanged()
{
filterUpdated( m_ui->filterInput->text() );
}
......@@ -65,6 +65,7 @@ class MediaLibrary : public QWidget
* A view is changed when the user goes through the clips hierarchy.
*/
void viewChanged( ViewController* view );
void filterTypeChanged();
signals:
void importRequired();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment