diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-06 10:20:18 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-06 10:20:18 -0800 |
commit | bb566f7798f1bc7fe8e4d40813823dca0f6ea9a3 (patch) | |
tree | 36d4e50e9e1db4942c1021c7393f9ea1b4bf1980 /profile-widget/divepixmapitem.cpp | |
parent | 7e5b66d2c47538b3fcda806600e246b6cfb1d19d (diff) | |
download | subsurface-bb566f7798f1bc7fe8e4d40813823dca0f6ea9a3.tar.gz |
Don't connect to the PreferencesDialog in Subsurface-mobile
Just more untangling from the desktop UI.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/divepixmapitem.cpp')
-rw-r--r-- | profile-widget/divepixmapitem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/profile-widget/divepixmapitem.cpp b/profile-widget/divepixmapitem.cpp index 7d95b79c2..7b0d4993e 100644 --- a/profile-widget/divepixmapitem.cpp +++ b/profile-widget/divepixmapitem.cpp @@ -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); |