mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Don't allow drops in CollectionView.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "collectionview.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDragEnterEvent>
|
||||
|
||||
#include "playlist/collectionproxymodel.h"
|
||||
|
||||
@@ -24,3 +25,12 @@ CollectionView::~CollectionView()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
CollectionView::dragEnterEvent( QDragEnterEvent* event )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
|
@@ -11,6 +11,9 @@ Q_OBJECT
|
||||
public:
|
||||
explicit CollectionView( QWidget* parent = 0 );
|
||||
~CollectionView();
|
||||
|
||||
protected:
|
||||
virtual void dragEnterEvent( QDragEnterEvent* event );
|
||||
};
|
||||
|
||||
#endif // COLLECTIONVIEW_H
|
||||
|
@@ -241,12 +241,6 @@ TrackView::dragMoveEvent( QDragMoveEvent* event )
|
||||
{
|
||||
QTreeView::dragMoveEvent( event );
|
||||
|
||||
/* if ( m_model->isReadOnly() )
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}*/
|
||||
|
||||
if ( event->mimeData()->hasFormat( "application/tomahawk.query.list" ) || event->mimeData()->hasFormat( "application/tomahawk.plentry.list" ) )
|
||||
{
|
||||
setDirtyRegion( m_dropRect );
|
||||
|
Reference in New Issue
Block a user