parent
bfa002e50a
commit
438aacb9c4
1 changed files with 8 additions and 6 deletions
|
@ -358,6 +358,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
|
|
||||||
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
|
if (event->buttons() == Qt::LeftButton){
|
||||||
if (settingsCache->getDoubleClickToPlay()) {
|
if (settingsCache->getDoubleClickToPlay()) {
|
||||||
if (revealedCard)
|
if (revealedCard)
|
||||||
zone->removeCard(this);
|
zone->removeCard(this);
|
||||||
|
@ -366,6 +367,7 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
|
||||||
}
|
}
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CardItem::animationEvent()
|
bool CardItem::animationEvent()
|
||||||
|
|
Loading…
Reference in a new issue