mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -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
|
|
@ -158,12 +158,6 @@ void DeckView::mouseDoubleClickEvent(QMouseEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
void DeckViewCard::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
{
|
||||
event->accept();
|
||||
processHoverEvent();
|
||||
}
|
||||
|
||||
DeckViewCardContainer::DeckViewCardContainer(const QString &_name) : QGraphicsItem(), name(_name), width(0), height(0)
|
||||
{
|
||||
setCacheMode(DeviceCoordinateCache);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue