1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 05:11:44 +02:00

* Adapt InboxModel to new PlaylistModel API.

This commit is contained in:
Christian Muehlhaeuser
2014-08-13 06:11:06 +02:00
parent 0e807263ae
commit 7dab3960f3
2 changed files with 2 additions and 4 deletions

View File

@@ -76,10 +76,8 @@ InboxModel::unlistenedCount() const
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;
for ( QList< Tomahawk::plentry_ptr >::const_iterator it = entries.constBegin();
it != entries.constEnd(); ++it )

View File

@@ -40,7 +40,7 @@ public slots:
* On top of PlaylistModel functionality, adds deduplication/grouping of equivalent tracks
* 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 );