mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
* Forward TreeProxyModel::indexFromQuery to source-model.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user