mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
e4a9fa74e8
commit
6998dcdf6a
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue