diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 10:56:03 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-10 10:56:03 -0700 |
commit | 6998dcdf6ab19b6045dffbddfc6998b6458f3d96 (patch) | |
tree | a861612a97d27914727f972ad5f37d0a31341087 /qt-ui/profile | |
parent | e4a9fa74e8264be94a53932cf1f53afc5f658507 (diff) | |
download | subsurface-6998dcdf6ab19b6045dffbddfc6998b6458f3d96.tar.gz |
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>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |