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
This commit is contained in:
jan Iversen 2018-06-13 17:06:46 +02:00 committed by Dirk Hohndel
parent 36d7f6eafb
commit 889a0bb67a
2 changed files with 2 additions and 2 deletions

View file

@ -223,8 +223,6 @@ enum cloud_status {
extern struct preferences prefs, default_prefs, git_prefs; extern struct preferences prefs, default_prefs, git_prefs;
#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
extern const char *system_divelist_default_font; extern const char *system_divelist_default_font;
extern double system_divelist_default_font_size; extern double system_divelist_default_font_size;

View file

@ -44,6 +44,8 @@
#endif #endif
#include <QtWidgets> #include <QtWidgets>
#define PP_GRAPHS_ENABLED (prefs.pp_graphs.po2 || prefs.pp_graphs.pn2 || prefs.pp_graphs.phe)
// a couple of helpers we need // a couple of helpers we need
extern bool haveFilesOnCommandLine(); extern bool haveFilesOnCommandLine();