1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 08:19:42 +01:00

* Forward TreeProxyModel::indexFromQuery to source-model.

This commit is contained in:
Christian Muehlhaeuser 2012-11-28 08:02:03 +01:00
parent 2943e13edc
commit ef3fff210e
2 changed files with 8 additions and 0 deletions

View File

@ -367,3 +367,10 @@ TreeProxyModel::indexFromResult( const Tomahawk::result_ptr& result ) const
{
return mapFromSource( m_model->indexFromResult( result ) );
}
QModelIndex
TreeProxyModel::indexFromQuery( const Tomahawk::query_ptr& query ) const
{
return mapFromSource( m_model->indexFromQuery( query ) );
}

View File

@ -50,6 +50,7 @@ public:
QModelIndex indexFromArtist( const Tomahawk::artist_ptr& artist ) const;
QModelIndex indexFromAlbum( const Tomahawk::album_ptr& album ) const;
QModelIndex indexFromResult( const Tomahawk::result_ptr& result ) const;
QModelIndex indexFromQuery( const Tomahawk::query_ptr& query ) const;
protected:
bool filterAcceptsRow( int sourceRow, const QModelIndex& sourceParent ) const;