1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-31 06:02:27 +02:00

* Return playlist-specific guids in PlaylistModel.

This commit is contained in:
Christian Muehlhaeuser 2012-11-09 06:40:31 +01:00
parent 9208a0244c
commit 70399e3cd7
2 changed files with 14 additions and 0 deletions

View File

@ -59,6 +59,18 @@ PlaylistModel::~PlaylistModel()
}
QString
PlaylistModel::guid() const
{
if ( !m_playlist.isNull() )
{
return QString( "playlistmodel/%1" ).arg( m_playlist->guid() );
}
else
return QString();
}
void
PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist, bool loadEntries )
{

View File

@ -47,6 +47,8 @@ public:
explicit PlaylistModel( QObject* parent = 0 );
~PlaylistModel();
virtual QString guid() const;
virtual QMimeData* mimeData( const QModelIndexList& indexes ) const;
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent );