summaryrefslogtreecommitdiffstats
path: root/profile-widget/divecartesianaxis.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/divecartesianaxis.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/divecartesianaxis.cpp')
-rw-r--r--profile-widget/divecartesianaxis.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp
index 3941911de..41d6bc3e4 100644
--- a/profile-widget/divecartesianaxis.cpp
+++ b/profile-widget/divecartesianaxis.cpp
@@ -1,7 +1,9 @@
#include "divecartesianaxis.h"
#include "divetextitem.h"
#include "helpers.h"
+#ifndef SUBSURFACE_MOBILE
#include "preferences/preferencesdialog.h"
+#endif
#include "diveplotdatamodel.h"
#include "animationfunctions.h"
#include "divelineitem.h"
@@ -376,7 +378,9 @@ QColor DepthAxis::colorForValue(double value)
DepthAxis::DepthAxis(ProfileWidget2 *widget) : DiveCartesianAxis(widget)
{
+#ifndef SUBSURFACE_MOBILE
connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
+#endif
changed = true;
settingsChanged();
}
@@ -432,7 +436,9 @@ PartialGasPressureAxis::PartialGasPressureAxis(ProfileWidget2 *widget) :
DiveCartesianAxis(widget),
model(NULL)
{
+#ifndef SUBSURFACE_MOBILE
connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
+#endif
}
void PartialGasPressureAxis::setModel(DivePlotDataModel *m)