mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
* Added itemFromIndex to PlayableModel.
This commit is contained in:
committed by
Michael Zanetti
parent
266de41624
commit
2156466762
@@ -816,6 +816,13 @@ PlayableModel::finishLoading()
|
||||
}
|
||||
|
||||
|
||||
PlayableItem*
|
||||
PlayableModel::itemFromIndex( int itemIndex ) const
|
||||
{
|
||||
return itemFromIndex( index( itemIndex, 0, QModelIndex() ) );
|
||||
}
|
||||
|
||||
|
||||
PlayableItem*
|
||||
PlayableModel::itemFromIndex( const QModelIndex& index ) const
|
||||
{
|
||||
|
@@ -120,6 +120,7 @@ public:
|
||||
|
||||
virtual void ensureResolved();
|
||||
|
||||
Q_INVOKABLE PlayableItem* itemFromIndex( int itemIndex ) const;
|
||||
virtual PlayableItem* itemFromIndex( const QModelIndex& index ) const;
|
||||
virtual PlayableItem* itemFromQuery( const Tomahawk::query_ptr& query ) const;
|
||||
virtual PlayableItem* itemFromResult( const Tomahawk::result_ptr& result ) const;
|
||||
|
Reference in New Issue
Block a user