mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Disable drop-event hack in sidebar.
This commit is contained in:
@@ -875,16 +875,15 @@ SourceTreeView::dropEvent( QDropEvent* event )
|
||||
const QModelIndex index = indexAt( pos );
|
||||
|
||||
// Need to fake the dropevent because the treeview would reject it if it is outside the item (on the tree)
|
||||
if ( pos.x() < 96 )
|
||||
/* if ( pos.x() < 32 )
|
||||
{
|
||||
event->ignore();
|
||||
|
||||
QDropEvent* newEvent = new QDropEvent( pos + QPoint( 96, 0 ), event->possibleActions(), event->mimeData(), event->mouseButtons(), event->keyboardModifiers(), event->type() );
|
||||
QDropEvent* newEvent = new QDropEvent( pos + QPoint( 32, 0 ), event->possibleActions(), event->mimeData(), event->mouseButtons(), event->keyboardModifiers(), event->type() );
|
||||
event->acceptProposedAction();
|
||||
QTreeView::dropEvent( newEvent );
|
||||
delete newEvent;
|
||||
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
// if it's a playlist drop, accept it anywhere in the sourcetree by manually parsing it.
|
||||
if ( DropJob::isDropType( DropJob::Playlist, event->mimeData() ) )
|
||||
|
Reference in New Issue
Block a user