1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Correctly accept track drops for inbox.

This commit is contained in:
Teo Mrnjavac 2013-03-06 18:37:34 +01:00
parent 69e226a906
commit 2dd5515392
2 changed files with 8 additions and 0 deletions

View File

@ -761,3 +761,10 @@ SourceItem::supportedDropTypes( const QMimeData* data ) const
return DropTypesNone;
}
Qt::ItemFlags
SourceItem::flags() const
{
return SourceTreeItem::flags() | Qt::ItemIsDropEnabled;
}

View File

@ -58,6 +58,7 @@ public:
virtual bool willAcceptDrag( const QMimeData* data ) const;
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action );
virtual DropTypes supportedDropTypes( const QMimeData* data ) const;
virtual Qt::ItemFlags flags() const;
public slots:
virtual void activate();