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:
parent
2943e13edc
commit
ef3fff210e
@ -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 ) );
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user