cleanup: remove dive.h include in simplewidgets.h

Let's simply forward declare the needed structures.
Also removes removes two more unnecessary includes.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-26 16:56:46 +01:00 committed by Dirk Hohndel
parent 2a876be844
commit ab94956759

View file

@ -6,12 +6,14 @@ class MinMaxAvgWidgetPrivate;
class QAbstractButton; class QAbstractButton;
class QNetworkReply; class QNetworkReply;
class FilterModelBase; class FilterModelBase;
struct dive;
struct dive_components;
#include "core/units.h"
#include <QWidget> #include <QWidget>
#include <QGroupBox> #include <QGroupBox>
#include <QDialog> #include <QDialog>
#include <QTextEdit> #include <QTextEdit>
#include <stdint.h>
#include "ui_renumber.h" #include "ui_renumber.h"
#include "ui_setpoint.h" #include "ui_setpoint.h"
@ -21,9 +23,6 @@ class FilterModelBase;
#include "ui_divecomponentselection.h" #include "ui_divecomponentselection.h"
#include "ui_listfilter.h" #include "ui_listfilter.h"
#include "ui_addfilterpreset.h" #include "ui_addfilterpreset.h"
#include "core/exif.h"
#include "core/dive.h"
class MinMaxAvgWidget : public QWidget { class MinMaxAvgWidget : public QWidget {
Q_OBJECT Q_OBJECT