mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 08:19:42 +01:00
Fix some warnings
This commit is contained in:
parent
3ede2ea281
commit
43c4cebe12
@ -19,6 +19,7 @@
|
||||
|
||||
#include "sourcetreeitem.h"
|
||||
#include "playlist/dynamic/DynamicPlaylist.h"
|
||||
#include "artist.h"
|
||||
|
||||
class PlaylistItem : public SourceTreeItem
|
||||
{
|
||||
|
@ -49,9 +49,9 @@ public:
|
||||
virtual Qt::ItemFlags flags() const { return Qt::ItemIsSelectable | Qt::ItemIsEnabled; }
|
||||
virtual void activate() {}
|
||||
virtual QIcon icon() const { return QIcon(); }
|
||||
virtual bool willAcceptDrag( const QMimeData* data ) const { return false; }
|
||||
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action ) { return false; }
|
||||
virtual bool setData( const QVariant& v, bool role ) { return false; }
|
||||
virtual bool willAcceptDrag( const QMimeData* ) const { return false; }
|
||||
virtual bool dropMimeData( const QMimeData*, Qt::DropAction ) { return false; }
|
||||
virtual bool setData( const QVariant&, bool ) { return false; }
|
||||
virtual int peerSortValue() const { return 0; } // How to sort relative to peers in the tree.
|
||||
|
||||
/// don't call me unless you are a sourcetreeitem. i prefer this to making everyone a friend
|
||||
|
@ -111,7 +111,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
|
||||
|
||||
|
||||
int
|
||||
SourcesModel::columnCount( const QModelIndex& parent ) const
|
||||
SourcesModel::columnCount( const QModelIndex& ) const
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@ -183,7 +183,7 @@ SourcesModel::mimeTypes() const
|
||||
|
||||
|
||||
QMimeData*
|
||||
SourcesModel::mimeData( const QModelIndexList& indexes ) const
|
||||
SourcesModel::mimeData( const QModelIndexList& ) const
|
||||
{
|
||||
// TODO
|
||||
return new QMimeData();
|
||||
|
Loading…
x
Reference in New Issue
Block a user