From 6998dcdf6ab19b6045dffbddfc6998b6458f3d96 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 10 Jun 2014 10:56:03 -0700 Subject: Picture handling: when zooming thumbnail, put it in the foreground This just seems to look much better. Signed-off-by: Dirk Hohndel --- qt-ui/profile/divepixmapitem.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index c75456262..263a8023b 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -48,9 +48,11 @@ void DivePictureItem::setPixmap(const QPixmap &pix) void DivePictureItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event) { Animations::scaleTo(this, 1.0); + this->setZValue(5); } void DivePictureItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) { Animations::scaleTo(this, 0.2); + this->setZValue(0); } -- cgit v1.2.3-70-g09d2