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

@ -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()