[Game][Player] Pull out graphics_items out of player_logic

Took 25 seconds


Took 9 minutes
This commit is contained in:
Lukas Brübach 2026-05-21 23:26:31 +02:00
parent cbfd286908
commit 7070269a86
8 changed files with 15 additions and 22 deletions

View file

@ -482,8 +482,7 @@ void CardItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
(!SettingsCache::instance().getDoubleClickToPlay())) {
handleClickedToPlay(event->modifiers().testFlag(Qt::ShiftModifier));
}
if (owner != nullptr) { // cards without owner will be deleted
if (owner != nullptr) {
setCursor(Qt::OpenHandCursor);
}
AbstractCardItem::mouseReleaseEvent(event);
@ -539,4 +538,4 @@ QVariant CardItem::itemChange(GraphicsItemChange change, const QVariant &value)
}
return AbstractCardItem::itemChange(change, value);
}
}