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/ruleritem.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/ruleritem.cpp')
-rw-r--r-- | profile-widget/ruleritem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/ruleritem.cpp b/profile-widget/ruleritem.cpp index 9c6a8527a..1b9c0e929 100644 --- a/profile-widget/ruleritem.cpp +++ b/profile-widget/ruleritem.cpp @@ -1,5 +1,7 @@ #include "ruleritem.h" +#ifndef SUBSURFACE_MOBILE #include "preferences/preferencesdialog.h" +#endif #include "profilewidget2.h" #include "display.h" @@ -78,7 +80,9 @@ RulerItem2::RulerItem2() : source(new RulerNodeItem2()), textItemBack->setPen(QColor(Qt::white)); textItemBack->setFlag(QGraphicsItem::ItemIgnoresTransformations); setPen(QPen(QColor(Qt::black), 0.0)); +#ifndef SUBSURFACE_MOBILE connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged())); +#endif } void RulerItem2::settingsChanged() |