mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Fix some warnings
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "sourcetreeitem.h"
|
#include "sourcetreeitem.h"
|
||||||
#include "playlist/dynamic/DynamicPlaylist.h"
|
#include "playlist/dynamic/DynamicPlaylist.h"
|
||||||
|
#include "artist.h"
|
||||||
|
|
||||||
class PlaylistItem : public SourceTreeItem
|
class PlaylistItem : public SourceTreeItem
|
||||||
{
|
{
|
||||||
|
@@ -49,9 +49,9 @@ public:
|
|||||||
virtual Qt::ItemFlags flags() const { return Qt::ItemIsSelectable | Qt::ItemIsEnabled; }
|
virtual Qt::ItemFlags flags() const { return Qt::ItemIsSelectable | Qt::ItemIsEnabled; }
|
||||||
virtual void activate() {}
|
virtual void activate() {}
|
||||||
virtual QIcon icon() const { return QIcon(); }
|
virtual QIcon icon() const { return QIcon(); }
|
||||||
virtual bool willAcceptDrag( const QMimeData* data ) const { return false; }
|
virtual bool willAcceptDrag( const QMimeData* ) const { return false; }
|
||||||
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action ) { return false; }
|
virtual bool dropMimeData( const QMimeData*, Qt::DropAction ) { return false; }
|
||||||
virtual bool setData( const QVariant& v, bool role ) { 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.
|
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
|
/// 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
|
int
|
||||||
SourcesModel::columnCount( const QModelIndex& parent ) const
|
SourcesModel::columnCount( const QModelIndex& ) const
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -183,7 +183,7 @@ SourcesModel::mimeTypes() const
|
|||||||
|
|
||||||
|
|
||||||
QMimeData*
|
QMimeData*
|
||||||
SourcesModel::mimeData( const QModelIndexList& indexes ) const
|
SourcesModel::mimeData( const QModelIndexList& ) const
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
return new QMimeData();
|
return new QMimeData();
|
||||||
|
Reference in New Issue
Block a user