mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
improved card drag, still unfinished
This commit is contained in:
parent
2e0b16e90b
commit
9749423d62
8 changed files with 67 additions and 78 deletions
|
|
@ -128,7 +128,7 @@ CardDragItem *CardItem::createDragItem(int _id, const QPointF &_pos, const QPoin
|
|||
deleteDragItem();
|
||||
dragItem = new CardDragItem(this, _id, _pos, faceDown);
|
||||
scene()->addItem(dragItem);
|
||||
dragItem->setPos(_scenePos - dragItem->getHotSpot());
|
||||
dragItem->updatePosition(_scenePos/* - dragItem->getHotSpot()*/);
|
||||
|
||||
return dragItem;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue