1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Set drop rect from left edge to right edge always, don't rely on QAIV for native drag-drops

This commit is contained in:
Leo Franchi
2011-08-05 11:14:08 -04:00
parent 0e2dd37559
commit 57dfd6b4b2

View File

@@ -246,11 +246,10 @@ TrackView::dragMoveEvent( QDragMoveEvent* event )
if ( index.isValid() )
{
const QRect rect = visualRect( index );
m_dropRect = rect;
// indicate that the item will be inserted above the current place
const int gap = 5; // FIXME constant
m_dropRect = QRect( rect.left(), rect.top() - gap / 2, rect.width(), gap );
m_dropRect = QRect( 0, rect.top() - gap / 2, width(), gap );
event->acceptProposedAction();
}