From 8212acc9925b28ecd546b01047c6a8fc574326ef Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 25 Oct 2020 09:14:16 +0100 Subject: cleanup: break out event-related code into event.[c|h] In an effort to reduce the size of dive.h and dive.c, break out the event related functions. Moreover event-names were handled by the profile-code, collect that also in the new source files. Signed-off-by: Berthold Stoeger --- profile-widget/diveeventitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'profile-widget/diveeventitem.cpp') diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp index dcb4d8af0..33f909ecc 100644 --- a/profile-widget/diveeventitem.cpp +++ b/profile-widget/diveeventitem.cpp @@ -3,6 +3,7 @@ #include "qt-models/diveplotdatamodel.h" #include "profile-widget/divecartesianaxis.h" #include "profile-widget/animationfunctions.h" +#include "core/event.h" #include "core/libdivecomputer.h" #include "core/profile.h" #include "core/gettextfromc.h" @@ -12,9 +13,6 @@ #define DEPTH_NOT_FOUND (-2342) -extern struct ev_select *ev_namelist; -extern int evn_used; - DiveEventItem::DiveEventItem(QGraphicsItem *parent) : DivePixmapItem(parent), vAxis(NULL), hAxis(NULL), -- cgit v1.2.3-70-g09d2