Commit 8869eb21 authored by Rafael Fernández López's avatar Rafael Fernández López
Browse files

Take offsets in count

svn path=/trunk/KDE/kdebase/apps/; revision=680285
parent 037d0aed
......@@ -399,8 +399,8 @@ void KListView::Private::drawDraggedItems(QPainter *painter)
option.state &= ~QStyle::State_MouseOver;
foreach (const QModelIndex &index, listView->selectionModel()->selectedIndexes())
{
int dx = mousePosition.x() - initialPressPosition.x();
int dy = mousePosition.y() - initialPressPosition.y();
int dx = mousePosition.x() - initialPressPosition.x() + listView->horizontalOffset();
int dy = mousePosition.y() - initialPressPosition.y() + listView->verticalOffset();
option.rect = visualRect(index);
option.rect.adjust(dx, dy, dx, dy);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment