summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-08 12:43:04 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 12:42:51 -0700
commite14a15e61c6fa5529f33de410bfc6e0ad351a7af (patch)
tree168daf4927e48f4b51dbfd6a0e8136518e99a9c6 /qt-ui/profile/profilewidget2.cpp
parent38ac6ed35fc4e3a99cbf1ea1ae271ddea7a06661 (diff)
downloadsubsurface-e14a15e61c6fa5529f33de410bfc6e0ad351a7af.tar.gz
Subtle animation when the picture gets hovered with the mouse.
This patch adds a subtle animation when the picture gets hovered with the mouse, and restored to it's original size when mouse exits the image area. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.cpp')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 92c368cb8..b2021fd8c 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -1309,7 +1309,7 @@ void ProfileWidget2::plotPictures()
// information area.
if (!pic->timestamp)
continue;
- DivePixmapItem *item = new DivePixmapItem();
+ DivePictureItem *item = new DivePictureItem();
item->setPixmap(m->index(i,0).data(Qt::DecorationRole).value<QPixmap>());
// TODO: put the item in the correct place. use the pic.timestamp to find where it belongs on the dive.
item->setPos(10 ,10);