Pictures tied to profile are not supported on mobile

Move divepicturemodel.cpp to the desktop only category and deal
with the (limited) fallout. We, currently, do not support dive
pictures tied to the profile on mobile, so there is no use
including this code.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-01-10 13:55:29 +01:00
parent 9c01315d31
commit 34bc4fc0af
5 changed files with 12 additions and 4 deletions

View file

@ -135,7 +135,9 @@ void DivePictureItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
}
}
#ifndef SUBSURFACE_MOBILE
void DivePictureItem::removePicture()
{
DivePictureModel::instance()->removePicture(fileUrl, true);
}
#endif