Picture handling: when zooming thumbnail, put it in the foreground

This just seems to look much better.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-10 10:56:03 -07:00
parent e4a9fa74e8
commit 6998dcdf6a

View file

@ -48,9 +48,11 @@ void DivePictureItem::setPixmap(const QPixmap &pix)
void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
{ {
Animations::scaleTo(this, 1.0); Animations::scaleTo(this, 1.0);
this->setZValue(5);
} }
void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
{ {
Animations::scaleTo(this, 0.2); Animations::scaleTo(this, 0.2);
this->setZValue(0);
} }