- 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
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);
const bool oldAlternateBackground = m_alternateBackground;
setAlternateBackground(false);
+ const bool wasSelected = m_selected;
+ setSelected(false);
+
paint(&painter, option, widget);
+
setAlternateBackground(oldAlternateBackground);
+ setSelected(wasSelected);
return pixmap;
}
QWidget* widget)
{
QPixmap pixmap = KItemListWidget::createDragPixmap(option, widget);
- if (m_layout != DetailsLayout || styleOption().extendedSelectionRegion) {
+ if (m_layout != DetailsLayout) {
return pixmap;
}