diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-29 23:03:32 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-30 12:52:31 -0700 |
commit | 3b9bceacb6efcd3e97c95077a2295c931c834514 (patch) | |
tree | c40ae2d7529f5fd6aab9d9041c785202fe0c61a0 /qt-ui/profile/divepixmapitem.cpp | |
parent | 1e6986d87010a636d151f77b3da2a40d52a95178 (diff) | |
download | subsurface-3b9bceacb6efcd3e97c95077a2295c931c834514.tar.gz |
Implement the functionality of remove_picture.
Added the remove_picture functionality, with code
shamelessy stolen from remove_event, and hoock it
up with the interface.
Fixes #650
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divepixmapitem.cpp')
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index 3fb06adb9..41541c21e 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -119,9 +119,7 @@ void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event) void DivePictureItem::removePicture() { - /* this is a WIP, it doesn't really *removes* anything, merely hides it. - * good workaround, I still need to figure out how to activelly remove - * it from the model. */ button->hide(); hide(); + DivePictureModel::instance()->removePicture(fileUrl); } |