diff options
author | jan Iversen <jani@apache.org> | 2018-08-15 11:52:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-08-15 16:11:39 -0700 |
commit | 1cc7c05170b4d7a188f88feabb4dcd800ebef85a (patch) | |
tree | ade242b6b0708cb862700bff48552459eca2c863 /profile-widget/ruleritem.cpp | |
parent | 50c58b4065db230bf07a2fa50ed22cfd8f263b7f (diff) | |
download | subsurface-1cc7c05170b4d7a188f88feabb4dcd800ebef85a.tar.gz |
profile-widget: remove SettingsObjectWrapper and update qPref calls
remove use of SettingsObjectWrapper::
remove include of SettingsObjectWrapper.h
use qPrefFoo:: for setters and getters
replace prefs.foo with qPrefXYZ::foo() where feasible
(this expands to the same code, but gives us more control
over the variable).
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'profile-widget/ruleritem.cpp')
-rw-r--r-- | profile-widget/ruleritem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/ruleritem.cpp b/profile-widget/ruleritem.cpp index 4c49bdc9e..f736f3ac3 100644 --- a/profile-widget/ruleritem.cpp +++ b/profile-widget/ruleritem.cpp @@ -5,7 +5,7 @@ #endif #include "profile-widget/profilewidget2.h" #include "core/display.h" -#include "core/subsurface-qt/SettingsObjectWrapper.h" +#include "core/settings/qPrefTechnicalDetails.h" #include <qgraphicssceneevent.h> @@ -83,7 +83,7 @@ RulerItem2::RulerItem2() : source(new RulerNodeItem2()), textItemBack->setFlag(QGraphicsItem::ItemIgnoresTransformations); setPen(QPen(QColor(Qt::black), 0.0)); #ifndef SUBSURFACE_MOBILE - connect(SettingsObjectWrapper::instance()->techDetails, &qPrefTechnicalDetails::rulergraph_changed, this, &RulerItem2::settingsChanged); + connect(qPrefTechnicalDetails::instance(), &qPrefTechnicalDetails::rulergraph_changed, this, &RulerItem2::settingsChanged); #endif } |