mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +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:
@@ -246,11 +246,10 @@ TrackView::dragMoveEvent( QDragMoveEvent* event )
|
|||||||
if ( index.isValid() )
|
if ( index.isValid() )
|
||||||
{
|
{
|
||||||
const QRect rect = visualRect( index );
|
const QRect rect = visualRect( index );
|
||||||
m_dropRect = rect;
|
|
||||||
|
|
||||||
// indicate that the item will be inserted above the current place
|
// indicate that the item will be inserted above the current place
|
||||||
const int gap = 5; // FIXME constant
|
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();
|
event->acceptProposedAction();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user