mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 12:33:55 -07:00
parent
bfa002e50a
commit
438aacb9c4
1 changed files with 8 additions and 6 deletions
|
|
@ -358,13 +358,15 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
|
||||||
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (settingsCache->getDoubleClickToPlay()) {
|
if (event->buttons() == Qt::LeftButton){
|
||||||
if (revealedCard)
|
if (settingsCache->getDoubleClickToPlay()) {
|
||||||
zone->removeCard(this);
|
if (revealedCard)
|
||||||
else
|
zone->removeCard(this);
|
||||||
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
else
|
||||||
|
playCard(event->modifiers().testFlag(Qt::ShiftModifier));
|
||||||
|
}
|
||||||
|
event->accept();
|
||||||
}
|
}
|
||||||
event->accept();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue