┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-06-12 13:19:16 +0200
committerPeter Penz <[email protected]>2012-06-12 13:21:17 +0200
commitc95255eb9087f1ff8845e4fed445198a0e22b221 (patch)
tree4190f7f277ac27b5a4c97a9c620bd615974d5705 /src/kitemviews/kitemlistcontroller.cpp
parent6c15705528f1a316d7896f7684761b2aae234c1f (diff)
Drag-pixmap fixes
- Don't use the selection-tinted icon when dragging a single item - Decrease the vertical gap for the hotspot - Prevent drawing tree-lines when dragging items for the Places Panel CCBUG: 301624
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.cpp')
-rw-r--r--src/kitemviews/kitemlistcontroller.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kitemviews/kitemlistcontroller.cpp b/src/kitemviews/kitemlistcontroller.cpp
index 2c2101935..76f7fa1cd 100644
--- a/src/kitemviews/kitemlistcontroller.cpp
+++ b/src/kitemviews/kitemlistcontroller.cpp
@@ -1084,9 +1084,7 @@ void KItemListController::startDragging()
const QPixmap pixmap = m_view->createDragPixmap(selectedItems);
drag->setPixmap(pixmap);
- // TODO: The vertical hotspot of -24 should be replaced by the
- // height of the QCursor-pixmap.
- const QPoint hotSpot(pixmap.width() / 2, -24);
+ const QPoint hotSpot(pixmap.width() / 2, 0);
drag->setHotSpot(hotSpot);
drag->exec(Qt::MoveAction | Qt::CopyAction | Qt::LinkAction, Qt::CopyAction);