diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-17 22:43:52 +1300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-18 21:25:59 +1200 |
commit | f9ceff009b35f73dec6d13f4037119172f6cf0de (patch) | |
tree | 0da342f5a184cd01ac5b1cb8a6d4dea2b22fc7b1 /qt-ui/profile | |
parent | e0280048bcd9e602fb5073bc5f5526a5dffd1886 (diff) | |
download | subsurface-f9ceff009b35f73dec6d13f4037119172f6cf0de.tar.gz |
Clean up the header files
Lots and lots and lots of header files were being included without being
needed. This attempts to clean some of that crud up.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/animationfunctions.cpp | 2 | ||||
-rw-r--r-- | qt-ui/profile/divecartesianaxis.cpp | 7 | ||||
-rw-r--r-- | qt-ui/profile/diveeventitem.cpp | 3 | ||||
-rw-r--r-- | qt-ui/profile/divelineitem.cpp | 2 | ||||
-rw-r--r-- | qt-ui/profile/divepixmapitem.cpp | 5 | ||||
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.cpp | 2 | ||||
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 9 | ||||
-rw-r--r-- | qt-ui/profile/divetextitem.cpp | 9 | ||||
-rw-r--r-- | qt-ui/profile/divetooltipitem.cpp | 6 | ||||
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 11 | ||||
-rw-r--r-- | qt-ui/profile/ruleritem.cpp | 11 | ||||
-rw-r--r-- | qt-ui/profile/tankitem.cpp | 2 |
12 files changed, 0 insertions, 69 deletions
diff --git a/qt-ui/profile/animationfunctions.cpp b/qt-ui/profile/animationfunctions.cpp index fb1c85f8d..a19d50c9d 100644 --- a/qt-ui/profile/animationfunctions.cpp +++ b/qt-ui/profile/animationfunctions.cpp @@ -1,8 +1,6 @@ #include "animationfunctions.h" -#include "dive.h" #include "pref.h" #include <QPropertyAnimation> -#include <QPointF> namespace Animations { diff --git a/qt-ui/profile/divecartesianaxis.cpp b/qt-ui/profile/divecartesianaxis.cpp index aaa85c634..467a8b978 100644 --- a/qt-ui/profile/divecartesianaxis.cpp +++ b/qt-ui/profile/divecartesianaxis.cpp @@ -1,17 +1,10 @@ #include "divecartesianaxis.h" -#include "divelineitem.h" #include "divetextitem.h" #include "helpers.h" #include "preferences.h" #include "diveplotdatamodel.h" #include "animationfunctions.h" #include "mainwindow.h" -#include <QPen> -#include <QGraphicsScene> -#include <QDebug> -#include <QGraphicsView> -#include <QStyleOption> -#include <QSettings> static QPen gridPen() { diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index 1a5e29dda..2ec842179 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -3,10 +3,7 @@ #include "divecartesianaxis.h" #include "animationfunctions.h" #include "libdivecomputer.h" -#include "dive.h" -#include "planner.h" #include "profile.h" -#include <QDebug> #include "gettextfromc.h" #include "metrics.h" diff --git a/qt-ui/profile/divelineitem.cpp b/qt-ui/profile/divelineitem.cpp index 863cd6218..f9e288a44 100644 --- a/qt-ui/profile/divelineitem.cpp +++ b/qt-ui/profile/divelineitem.cpp @@ -1,6 +1,4 @@ #include "divelineitem.h" -#include "animationfunctions.h" -#include <QPropertyAnimation> DiveLineItem::DiveLineItem(QGraphicsItem *parent) : QGraphicsLineItem(parent) { diff --git a/qt-ui/profile/divepixmapitem.cpp b/qt-ui/profile/divepixmapitem.cpp index 8aff5315d..c9129761e 100644 --- a/qt-ui/profile/divepixmapitem.cpp +++ b/qt-ui/profile/divepixmapitem.cpp @@ -3,12 +3,7 @@ #include <divepicturewidget.h> #include <preferences.h> -#include <QPen> -#include <QBrush> -#include <QGraphicsDropShadowEffect> #include <QDesktopServices> -#include <QGraphicsScene> -#include <QGraphicsSceneMouseEvent> #include <QGraphicsView> #include <QUrl> diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index e60dd9ddb..9c0edc079 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -1,10 +1,8 @@ #include "diveplotdatamodel.h" #include "dive.h" -#include "display.h" #include "profile.h" #include "graphicsview-common.h" #include "divelist.h" -#include <QDebug> DivePlotDataModel::DivePlotDataModel(QObject *parent) : QAbstractTableModel(parent), diveId(0) { diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 490f045fd..66faf982d 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -1,24 +1,15 @@ #include "diveprofileitem.h" #include "diveplotdatamodel.h" #include "divecartesianaxis.h" -#include "graphicsview-common.h" #include "divetextitem.h" -#include "profilewidget2.h" #include "animationfunctions.h" #include "dive.h" #include "profile.h" #include "preferences.h" #include "helpers.h" -#include "diveplanner.h" #include "libdivecomputer/parser.h" #include "mainwindow.h" -#include <QPen> -#include <QPainter> -#include <QLinearGradient> -#include <QDebug> -#include <QApplication> -#include <QGraphicsItem> #include <QSettings> AbstractProfilePolygonItem::AbstractProfilePolygonItem() : QObject(), QGraphicsPolygonItem(), hAxis(NULL), vAxis(NULL), dataModel(NULL), hDataColumn(-1), vDataColumn(-1) diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp index 761f0e6f7..85e046638 100644 --- a/qt-ui/profile/divetextitem.cpp +++ b/qt-ui/profile/divetextitem.cpp @@ -1,15 +1,6 @@ #include "divetextitem.h" -#include "animationfunctions.h" #include "mainwindow.h" -#include <QPropertyAnimation> -#include <QApplication> -#include <QFont> -#include <QFontMetrics> -#include <QBrush> -#include <QPen> -#include <QDebug> - DiveTextItem::DiveTextItem(QGraphicsItem *parent) : QGraphicsItemGroup(parent), internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter), textBackgroundItem(new QGraphicsPathItem(this)), diff --git a/qt-ui/profile/divetooltipitem.cpp b/qt-ui/profile/divetooltipitem.cpp index e89feff9c..d4818422b 100644 --- a/qt-ui/profile/divetooltipitem.cpp +++ b/qt-ui/profile/divetooltipitem.cpp @@ -1,19 +1,13 @@ #include "divetooltipitem.h" #include "divecartesianaxis.h" -#include "profilewidget2.h" #include "dive.h" #include "profile.h" #include "membuffer.h" #include "metrics.h" #include <QPropertyAnimation> -#include <QGraphicsSceneMouseEvent> -#include <QPen> -#include <QBrush> -#include <QGraphicsScene> #include <QSettings> #include <QGraphicsView> #include <QStyleOptionGraphicsItem> -#include <QDebug> #define PORT_IN_PROGRESS 1 #ifdef PORT_IN_PROGRESS diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index b161032d4..516b14c2f 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -1,27 +1,16 @@ #include "profilewidget2.h" #include "diveplotdatamodel.h" -#include "divepixmapitem.h" -#include "diverectitem.h" -#include "divecartesianaxis.h" -#include "diveprofileitem.h" #include "helpers.h" #include "profile.h" #include "diveeventitem.h" #include "divetextitem.h" #include "divetooltipitem.h" -#include "animationfunctions.h" #include "planner.h" #include "device.h" #include "ruleritem.h" #include "tankitem.h" -#include "dive.h" #include "pref.h" #include <libdivecomputer/parser.h> -#include <QSignalTransition> -#include <QPropertyAnimation> -#include <QMenu> -#include <QContextMenuEvent> -#include <QDebug> #include <QScrollBar> #include <QtCore/qmath.h> #include <QMessageBox> diff --git a/qt-ui/profile/ruleritem.cpp b/qt-ui/profile/ruleritem.cpp index d38e88822..c88a3353d 100644 --- a/qt-ui/profile/ruleritem.cpp +++ b/qt-ui/profile/ruleritem.cpp @@ -1,21 +1,10 @@ #include "ruleritem.h" -#include "divetextitem.h" -#include "profilewidget2.h" #include "preferences.h" #include "mainwindow.h" -#include <QFont> -#include <QFontMetrics> -#include <QPainter> -#include <QGraphicsScene> -#include <QGraphicsView> #include <qgraphicssceneevent.h> -#include <QDebug> - -#include <stdint.h> #include "profile.h" -#include "display.h" RulerNodeItem2::RulerNodeItem2() : entry(NULL), ruler(NULL) { diff --git a/qt-ui/profile/tankitem.cpp b/qt-ui/profile/tankitem.cpp index 59acb28e0..48b586dd5 100644 --- a/qt-ui/profile/tankitem.cpp +++ b/qt-ui/profile/tankitem.cpp @@ -2,8 +2,6 @@ #include "diveplotdatamodel.h" #include "divetextitem.h" #include "profile.h" -#include <QGradient> -#include <QDebug> #include <QPen> TankItem::TankItem(QObject *parent) : |