mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
7e5b66d2c4
commit
bb566f7798
4 changed files with 19 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue