diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-23 12:39:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | 9c0b6436fd7d948e3b2ad191882ac36889c82179 (patch) | |
tree | 9e544f6f6702d5cabad46c68631fab2c9c36a461 | |
parent | 7da5719cabdbe00d71264aa1a5fb492573c5e57a (diff) | |
download | subsurface-9c0b6436fd7d948e3b2ad191882ac36889c82179.tar.gz |
profile: cleanup includes in tankitem.cpp
If possible, forward declare and move the include to the
.cpp file.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | profile-widget/tankitem.cpp | 2 | ||||
-rw-r--r-- | 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 <QPen> 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 <QGraphicsItem> -#include <QBrush> #include "profile-widget/divelineitem.h" -#include "profile-widget/divecartesianaxis.h" -#include "core/dive.h" +#include "core/gas.h" +#include <QGraphicsRectItem> +#include <QBrush> + +struct dive; +class DiveCartesianAxis; class TankItem : public QGraphicsRectItem { |