From 9c0b6436fd7d948e3b2ad191882ac36889c82179 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 23 Dec 2020 12:39:07 +0100 Subject: [PATCH] profile: cleanup includes in tankitem.cpp If possible, forward declare and move the include to the .cpp file. Signed-off-by: Berthold Stoeger --- profile-widget/tankitem.cpp | 2 ++ profile-widget/tankitem.h | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/profile-widget/tankitem.cpp b/profile-widget/tankitem.cpp index 849bab92c..6fde6203b 100644 --- a/profile-widget/tankitem.cpp +++ b/profile-widget/tankitem.cpp @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 #include "profile-widget/tankitem.h" +#include "profile-widget/divecartesianaxis.h" #include "profile-widget/divetextitem.h" +#include "core/dive.h" #include "core/event.h" #include "core/profile.h" #include diff --git a/profile-widget/tankitem.h b/profile-widget/tankitem.h index fb94dc481..265407cde 100644 --- a/profile-widget/tankitem.h +++ b/profile-widget/tankitem.h @@ -2,11 +2,13 @@ #ifndef TANKITEM_H #define TANKITEM_H -#include -#include #include "profile-widget/divelineitem.h" -#include "profile-widget/divecartesianaxis.h" -#include "core/dive.h" +#include "core/gas.h" +#include +#include + +struct dive; +class DiveCartesianAxis; class TankItem : public QGraphicsRectItem {