mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 18:13:55 -07:00
Use native hover events (#5722)
* Use native hover events * Update cockatrice/src/game/cards/abstract_card_item.cpp * Reorder --------- Co-authored-by: Zach H <zahalpern+github@gmail.com>
This commit is contained in:
parent
b9900e67a6
commit
e4f40a82a2
9 changed files with 27 additions and 77 deletions
|
|
@ -131,6 +131,7 @@ void PileZone::mouseReleaseEvent(QGraphicsSceneMouseEvent * /*event*/)
|
|||
void PileZone::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
if (!cards.isEmpty())
|
||||
cards[0]->processHoverEvent();
|
||||
emit cards[0]->hovered(cards[0]);
|
||||
|
||||
QGraphicsItem::hoverEnterEvent(event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue