mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
GameScene::event() optimization
This commit is contained in:
parent
f7963e713b
commit
0fdc01f6dd
5 changed files with 690 additions and 710 deletions
|
|
@ -173,6 +173,9 @@ void AbstractCardItem::setName(const QString &_name)
|
|||
|
||||
void AbstractCardItem::setHovered(bool _hovered)
|
||||
{
|
||||
if (isHovered == _hovered)
|
||||
return;
|
||||
|
||||
isHovered = _hovered;
|
||||
setZValue(_hovered ? 2000000004 : realZValue);
|
||||
update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue