1
0
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:
Christian Muehlhaeuser
2010-10-23 03:55:18 +02:00
parent c730969986
commit fc6b3d3595
3 changed files with 13 additions and 6 deletions

View File

@@ -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();
}

View File

@@ -11,6 +11,9 @@ Q_OBJECT
public:
explicit CollectionView( QWidget* parent = 0 );
~CollectionView();
protected:
virtual void dragEnterEvent( QDragEnterEvent* event );
};
#endif // COLLECTIONVIEW_H

View File

@@ -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 );