aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-06-13 17:06:46 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-04 05:32:30 +0800
commit889a0bb67a45f3e1637714331a5c620cc257df23 (patch)
treeec7f05249cb58664417e048764e80d9b94129a1b /profile-widget/profilewidget2.cpp
parent36d7f6eafb1a5e9c7145bc61243674382ae00421 (diff)
downloadsubsurface-889a0bb67a45f3e1637714331a5c620cc257df23.tar.gz
core/profile: move PP_GRAPHS_ENABLED from pref.h
PP_GRAPHS_ENABLED is only used in profilewidget2.cpp make local to profilewidget.cpp Signed-off-by: Jan Iversen <jani@apache.org>core/profile: move PP_GRAPHS_ENABLED from pref.h
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 40cb00162..bf8649834 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -44,6 +44,8 @@
#endif
#include <QtWidgets>
+#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
+
// a couple of helpers we need
extern bool haveFilesOnCommandLine();