summaryrefslogtreecommitdiffstats
path: root/profile-widget/ruleritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget/ruleritem.cpp')
-rw-r--r--profile-widget/ruleritem.cpp4
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()