Don't connect to the PreferencesDialog in Subsurface-mobile

Just more untangling from the desktop UI.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-06 10:20:18 -08:00
parent 7e5b66d2c4
commit bb566f7798
4 changed files with 19 additions and 0 deletions

View file

@ -1,7 +1,10 @@
#include "divepixmapitem.h"
#include "animationfunctions.h"
#include "divepicturemodel.h"
#include "pref.h"
#ifndef SUBSURFACE_MOBILE
#include "preferences/preferencesdialog.h"
#endif
#include <QDesktopServices>
#include <QGraphicsView>
@ -47,7 +50,9 @@ DivePictureItem::DivePictureItem(QObject *parent): DivePixmapItem(parent),
setFlag(ItemIgnoresTransformations);
setAcceptHoverEvents(true);
setScale(0.2);
#ifndef SUBSURFACE_MOBILE
connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
#endif
setVisible(prefs.show_pictures_in_profile);
canvas->setPen(Qt::NoPen);