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:
parent
9208a0244c
commit
70399e3cd7
@ -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 )
|
||||
{
|
||||
|
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user