summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-06 10:20:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-06 10:20:18 -0800
commitbb566f7798f1bc7fe8e4d40813823dca0f6ea9a3 (patch)
tree36d4e50e9e1db4942c1021c7393f9ea1b4bf1980 /profile-widget/diveprofileitem.cpp
parent7e5b66d2c47538b3fcda806600e246b6cfb1d19d (diff)
downloadsubsurface-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/diveprofileitem.cpp')
-rw-r--r--profile-widget/diveprofileitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index b4e33fe1b..ca87f4ed0 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -5,7 +5,9 @@
#include "animationfunctions.h"
#include "dive.h"
#include "profile.h"
+#ifndef SUBSURFACE_MOBILE
#include "preferences/preferencesdialog.h"
+#endif
#include "diveplannermodel.h"
#include "helpers.h"
#include "libdivecomputer/parser.h"
@@ -16,7 +18,9 @@
AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1)
{
setCacheMode(DeviceCoordinateCache);
+#ifndef SUBSURFACE_MOBILE
connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
+#endif
}
void AbstractProfilePolygonItem::settingsChanged()