mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
German translation fix, take bottom card via Ctrl+Drag
This commit is contained in:
parent
3211801e39
commit
1bfa355974
3 changed files with 7 additions and 6 deletions
|
|
@ -84,8 +84,9 @@ void PileZone::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||
return;
|
||||
|
||||
bool faceDown = event->modifiers().testFlag(Qt::ShiftModifier);
|
||||
CardItem *card = cards.at(0);
|
||||
const int cardid = contentsKnown() ? card->getId() : 0;
|
||||
bool bottomCard = event->modifiers().testFlag(Qt::ControlModifier);
|
||||
CardItem *card = bottomCard ? cards.last() : cards.first();
|
||||
const int cardid = contentsKnown() ? card->getId() : (bottomCard ? cards.size() - 1 : 0);
|
||||
CardDragItem *drag = card->createDragItem(cardid, event->pos(), event->scenePos(), faceDown);
|
||||
drag->grabMouse();
|
||||
setCursor(Qt::OpenHandCursor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue