mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Take offsets in count
svn path=/trunk/KDE/kdebase/apps/; revision=680285
This commit is contained in:
parent
0abbaf9e11
commit
289d854969
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue