mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Correctly accept track drops for inbox.
This commit is contained in:
@@ -761,3 +761,10 @@ SourceItem::supportedDropTypes( const QMimeData* data ) const
|
|||||||
|
|
||||||
return DropTypesNone;
|
return DropTypesNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Qt::ItemFlags
|
||||||
|
SourceItem::flags() const
|
||||||
|
{
|
||||||
|
return SourceTreeItem::flags() | Qt::ItemIsDropEnabled;
|
||||||
|
}
|
||||||
|
@@ -58,6 +58,7 @@ public:
|
|||||||
virtual bool willAcceptDrag( const QMimeData* data ) const;
|
virtual bool willAcceptDrag( const QMimeData* data ) const;
|
||||||
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action );
|
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action );
|
||||||
virtual DropTypes supportedDropTypes( const QMimeData* data ) const;
|
virtual DropTypes supportedDropTypes( const QMimeData* data ) const;
|
||||||
|
virtual Qt::ItemFlags flags() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
virtual void activate();
|
virtual void activate();
|
||||||
|
Reference in New Issue
Block a user