Merge pull request #433 from poixen/scalecards

Cards Scale with mouse over action
This commit is contained in:
Gavin Bisesi 2014-11-20 16:41:04 -05:00
commit 68bc67cde5

View file

@ -190,6 +190,8 @@ void AbstractCardItem::setHovered(bool _hovered)
processHoverEvent();
isHovered = _hovered;
setZValue(_hovered ? 2000000004 : realZValue);
setScale(_hovered ? 1.1 : 1);
setTransformOriginPoint(_hovered ? CARD_WIDTH / 2 : 0, _hovered ? CARD_HEIGHT / 2 : 0);
update();
}