Fewer rebuilds triggered by changes in models.h

Models.h now is quite minimal, I'll keep it like that for now, until it
grows huge again. I've also cleaned a bit the headers that are using it so
only the ones that actually need the stuff that I've left behind will
actually include this file.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2015-05-29 14:19:56 -03:00 committed by Dirk Hohndel
parent 33918e6867
commit 37bd82f623
10 changed files with 4 additions and 27 deletions

View file

@ -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

View file

@ -8,7 +8,6 @@
#define MODELS_H
#include <QAbstractTableModel>
#include <QCoreApplication>
#include <QStringList>
#include <QStringListModel>
#include <QSortFilterProxyModel>

View file

@ -2,7 +2,6 @@
#include "mainwindow.h"
#include "helpers.h"
#include "divecomputermodel.h"
#include "models.h"
#include <QMessageBox>
#include <QShortcut>

View file

@ -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};

View file

@ -14,7 +14,6 @@
#include <QTreeView>
#include <QLineEdit>
#include <QNetworkAccessManager>
#include "models.h"
#include "divetripmodel.h"
class DiveListView : public QTreeView {

View file

@ -4,6 +4,7 @@
#include "divelistview.h"
#include "display.h"
#include "uemis.h"
#include "models.h"
#include <QTimer>
#include <QFileDialog>

View file

@ -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"

View file

@ -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

View file

@ -1,6 +1,5 @@
#include "statisticswidget.h"
#include "yearlystatisticsmodel.h"
#include "models.h"
#include <QModelIndex>
YearlyStatisticsWidget::YearlyStatisticsWidget(QWidget *parent): QGraphicsView(parent)

View file

@ -1,5 +1,4 @@
#include "tableview.h"
#include "models.h"
#include "modeldelegates.h"
#include <QPushButton>