mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-21 13:21:52 +02:00
* Adapt InboxModel to new PlaylistModel API.
This commit is contained in:
@@ -76,10 +76,8 @@ InboxModel::unlistenedCount() const
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
InboxModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int row, const QList< Tomahawk::PlaybackLog >& logs )
|
InboxModel::insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int row, const QModelIndex& /* parent */, const QList< Tomahawk::PlaybackLog >& /* logs */ )
|
||||||
{
|
{
|
||||||
Q_UNUSED( logs ); // <- this is merely to silence GCC
|
|
||||||
|
|
||||||
QList< Tomahawk::plentry_ptr > toInsert;
|
QList< Tomahawk::plentry_ptr > toInsert;
|
||||||
for ( QList< Tomahawk::plentry_ptr >::const_iterator it = entries.constBegin();
|
for ( QList< Tomahawk::plentry_ptr >::const_iterator it = entries.constBegin();
|
||||||
it != entries.constEnd(); ++it )
|
it != entries.constEnd(); ++it )
|
||||||
|
@@ -40,7 +40,7 @@ public slots:
|
|||||||
* On top of PlaylistModel functionality, adds deduplication/grouping of equivalent tracks
|
* On top of PlaylistModel functionality, adds deduplication/grouping of equivalent tracks
|
||||||
* sent from different sources.
|
* sent from different sources.
|
||||||
*/
|
*/
|
||||||
virtual void insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int row = 0, const QList< Tomahawk::PlaybackLog >& logs = QList< Tomahawk::PlaybackLog >() );
|
virtual void insertEntries( const QList< Tomahawk::plentry_ptr >& entries, int row = 0, const QModelIndex& parent = QModelIndex(), const QList< Tomahawk::PlaybackLog >& logs = QList< Tomahawk::PlaybackLog >() );
|
||||||
|
|
||||||
virtual void removeIndex( const QModelIndex &index, bool moreToCome );
|
virtual void removeIndex( const QModelIndex &index, bool moreToCome );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user