mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Return playlist-specific guids in PlaylistModel.
This commit is contained in:
@@ -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
|
void
|
||||||
PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist, bool loadEntries )
|
PlaylistModel::loadPlaylist( const Tomahawk::playlist_ptr& playlist, bool loadEntries )
|
||||||
{
|
{
|
||||||
|
@@ -47,6 +47,8 @@ public:
|
|||||||
explicit PlaylistModel( QObject* parent = 0 );
|
explicit PlaylistModel( QObject* parent = 0 );
|
||||||
~PlaylistModel();
|
~PlaylistModel();
|
||||||
|
|
||||||
|
virtual QString guid() const;
|
||||||
|
|
||||||
virtual QMimeData* mimeData( const QModelIndexList& indexes ) const;
|
virtual QMimeData* mimeData( const QModelIndexList& indexes ) const;
|
||||||
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent );
|
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user