set the hotspot coherent with Dolphin

This commit is contained in:
Marco Martin 2012-08-27 19:51:04 +02:00
parent 8b89701731
commit d17002f04e

View File

@ -224,9 +224,10 @@ void DeclarativeDragArea::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
delete item;
drag->setPixmap(pixmap);
drag->setHotSpot(QPoint(0, 0)); // TODO: Make a property for that
}
drag->setHotSpot(QPoint(drag->pixmap().width()/2, 0)); // TODO: Make a property for that
//setCursor(Qt::OpenHandCursor); //TODO? Make a property for the cursor
Qt::DropAction action = drag->exec(m_supportedActions, m_defaultAction);