summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/models.cpp22
-rw-r--r--qt-models/models.h1
-rw-r--r--qt-ui/divecomputermanagementdialog.cpp1
-rw-r--r--qt-ui/divelistview.cpp1
-rw-r--r--qt-ui/divelistview.h1
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp1
-rw-r--r--qt-ui/maintab.cpp1
-rw-r--r--qt-ui/mainwindow.cpp1
-rw-r--r--qt-ui/statistics/statisticswidget.cpp1
-rw-r--r--qt-ui/tableview.cpp1
10 files changed, 4 insertions, 27 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index 5fa45c4f0..fa046ff3f 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -5,30 +5,10 @@
*
*/
#include "models.h"
-#include "diveplanner.h"
-#include "mainwindow.h"
#include "helpers.h"
-#include "dive.h"
-#include "device.h"
-#include "statistics.h"
-#include "qthelper.h"
-#include "gettextfromc.h"
-#include "display.h"
-#include "color.h"
-#include "divetripmodel.h"
-#include "cleanertablemodel.h"
-#include "weigthsysteminfomodel.h"
-#include <QCoreApplication>
-#include <QDebug>
-#include <QDir>
+#include <QLocale>
#include <QSettings>
-#include <QColor>
-#include <QBrush>
-#include <QFont>
-#include <QIcon>
-#include <QMessageBox>
-#include <QStringListModel>
// initialize the trash icon if necessary
diff --git a/qt-models/models.h b/qt-models/models.h
index df5906a18..c9212195e 100644
--- a/qt-models/models.h
+++ b/qt-models/models.h
@@ -8,7 +8,6 @@
#define MODELS_H
#include <QAbstractTableModel>
-#include <QCoreApplication>
#include <QStringList>
#include <QStringListModel>
#include <QSortFilterProxyModel>
diff --git a/qt-ui/divecomputermanagementdialog.cpp b/qt-ui/divecomputermanagementdialog.cpp
index 17434a9e5..fd9273ffb 100644
--- a/qt-ui/divecomputermanagementdialog.cpp
+++ b/qt-ui/divecomputermanagementdialog.cpp
@@ -2,7 +2,6 @@
#include "mainwindow.h"
#include "helpers.h"
#include "divecomputermodel.h"
-#include "models.h"
#include <QMessageBox>
#include <QShortcut>
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 77b33b941..7f755fc16 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -20,6 +20,7 @@
#include "qthelper.h"
#include "undocommands.h"
#include "divelistview.h"
+#include "models.h"
// # Date Rtg Dpth Dur Tmp Wght Suit Cyl Gas SAC OTU CNS Loc
static int defaultWidth[] = { 70, 140, 90, 50, 50, 50, 50, 70, 50, 50, 70, 50, 50, 500};
diff --git a/qt-ui/divelistview.h b/qt-ui/divelistview.h
index 65f98eff8..42802b6ea 100644
--- a/qt-ui/divelistview.h
+++ b/qt-ui/divelistview.h
@@ -14,7 +14,6 @@
#include <QTreeView>
#include <QLineEdit>
#include <QNetworkAccessManager>
-#include "models.h"
#include "divetripmodel.h"
class DiveListView : public QTreeView {
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index e6b51a513..c5d57e6a5 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -4,6 +4,7 @@
#include "divelistview.h"
#include "display.h"
#include "uemis.h"
+#include "models.h"
#include <QTimer>
#include <QFileDialog>
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index acf2f246a..02d6d66f0 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -11,7 +11,6 @@
#include "statistics.h"
#include "modeldelegates.h"
#include "diveplannermodel.h"
-#include "models.h"
#include "divelistview.h"
#include "display.h"
#include "profile/profilewidget2.h"
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index c327e6f97..60f6941d8 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -23,6 +23,7 @@
#include "filtermodels.h"
#include "profile/profilewidget2.h"
#include "globe.h"
+#include "divecomputer.h"
#include "maintab.h"
#include "diveplanner.h"
#ifndef NO_PRINTING
diff --git a/qt-ui/statistics/statisticswidget.cpp b/qt-ui/statistics/statisticswidget.cpp
index 5f98b3d39..9143c290c 100644
--- a/qt-ui/statistics/statisticswidget.cpp
+++ b/qt-ui/statistics/statisticswidget.cpp
@@ -1,6 +1,5 @@
#include "statisticswidget.h"
#include "yearlystatisticsmodel.h"
-#include "models.h"
#include <QModelIndex>
YearlyStatisticsWidget::YearlyStatisticsWidget(QWidget *parent): QGraphicsView(parent)
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp
index e412d77e9..40d5199ec 100644
--- a/qt-ui/tableview.cpp
+++ b/qt-ui/tableview.cpp
@@ -1,5 +1,4 @@
#include "tableview.h"
-#include "models.h"
#include "modeldelegates.h"
#include <QPushButton>