Cards Scale with mouse over action
Cards now scale up by 10% when mouse over.
This commit is contained in:
parent
8f801825a9
commit
62b7890e59
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ void AbstractCardItem::setHovered(bool _hovered)
|
||||||
processHoverEvent();
|
processHoverEvent();
|
||||||
isHovered = _hovered;
|
isHovered = _hovered;
|
||||||
setZValue(_hovered ? 2000000004 : realZValue);
|
setZValue(_hovered ? 2000000004 : realZValue);
|
||||||
|
setScale(_hovered ? 1.1 : 1);
|
||||||
|
setTransformOriginPoint(_hovered ? CARD_WIDTH / 2 : 0, _hovered ? CARD_HEIGHT / 2 : 0);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue