mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Headers cleanup.
Too much noise on the headers, this commit remove uneeded headers when they are uneeded. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b05d15c5a9
commit
89816f64c2
19 changed files with 22 additions and 39 deletions
2
pref.h
2
pref.h
|
@ -5,6 +5,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "units.h"
|
||||
|
||||
/* can't use 'bool' for the boolean values - different size in C and C++ */
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define ABOUT_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QPushButton>
|
||||
#include "ui_about.h"
|
||||
|
||||
class SubsurfaceAbout : public QDialog {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define DIVELOGEXPORTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QAbstractButton>
|
||||
class QAbstractButton;
|
||||
|
||||
namespace Ui {
|
||||
class DiveLogExportDialog;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define DIVELOGIMPORTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QModelIndex>
|
||||
|
||||
#include "../dive.h"
|
||||
#include "../divelist.h"
|
||||
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
#include "divepicturewidget.h"
|
||||
#include <dive.h>
|
||||
#include <qtconcurrentmap.h>
|
||||
#include <qdir.h>
|
||||
|
||||
void DivePictureDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
QStyledItemDelegate::paint(painter, option, index);
|
||||
}
|
||||
#include <QtConcurrentMap>
|
||||
#include <QDir>
|
||||
|
||||
DivePictureModel *DivePictureModel::instance()
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define DIVEPICTUREWIDGET_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QListView>
|
||||
#include <QThread>
|
||||
|
||||
|
@ -30,10 +29,6 @@ private:
|
|||
QHash<QString, PhotoHelper> stringPixmapCache;
|
||||
};
|
||||
|
||||
class DivePictureDelegate : QStyledItemDelegate {
|
||||
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
class DivePictureWidget : public QListView {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
#ifndef DIVEPLANNER_H
|
||||
#define DIVEPLANNER_H
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QGraphicsPathItem>
|
||||
#include <QDialog>
|
||||
#include <QAbstractTableModel>
|
||||
#include <QDateTime>
|
||||
|
||||
#include "dive.h"
|
||||
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
#include <QThread>
|
||||
#include <QHash>
|
||||
#include <QMap>
|
||||
#include <QStringListModel>
|
||||
|
||||
#include "../libdivecomputer.h"
|
||||
#include "ui_downloadfromdivecomputer.h"
|
||||
|
||||
class QStringListModel;
|
||||
|
||||
class DownloadThread : public QThread {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
|
@ -4,10 +4,13 @@
|
|||
|
||||
#include <marble/MarbleWidget.h>
|
||||
#include <marble/GeoDataCoordinates.h>
|
||||
#include <marble/GeoDataDocument.h>
|
||||
|
||||
#include <QHash>
|
||||
|
||||
namespace Marble{
|
||||
class GeoDataDocument;
|
||||
}
|
||||
|
||||
class KMessageWidget;
|
||||
using namespace Marble;
|
||||
struct dive;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
#include "divelistview.h"
|
||||
#include "modeldelegates.h"
|
||||
#include "globe.h"
|
||||
#include "completionmodels.h"
|
||||
#include "diveplanner.h"
|
||||
#include "divelist.h"
|
||||
#include "qthelper.h"
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
#include <QDialog>
|
||||
#include <QMap>
|
||||
|
||||
#include "models.h"
|
||||
#include "ui_maintab.h"
|
||||
#include "completionmodels.h"
|
||||
#include "dive.h"
|
||||
|
||||
class WeightModel;
|
||||
class CylindersModel;
|
||||
class QCompleter;
|
||||
struct dive;
|
||||
|
||||
struct Completers {
|
||||
QCompleter *location;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define PREFERENCES_H
|
||||
|
||||
#include <QDialog>
|
||||
#include "dive.h"
|
||||
#include "pref.h"
|
||||
|
||||
#include "ui_preferences.h"
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
#define PRINTLAYOUT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QPrinter>
|
||||
#include <QList>
|
||||
#include <QVector>
|
||||
#include <QRect>
|
||||
|
||||
class QPrinter;
|
||||
class QTableView;
|
||||
class PrintDialog;
|
||||
class TablePrintModel;
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#define PRINTOPTIONS_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QSlider>
|
||||
#include <QLabel>
|
||||
|
||||
#include "ui_printoptions.h"
|
||||
|
||||
|
|
|
@ -1,19 +1,10 @@
|
|||
#include "simplewidgets.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QLabel>
|
||||
#include <QFormLayout>
|
||||
#include <QIcon>
|
||||
#include <QAbstractButton>
|
||||
#include <QSpinBox>
|
||||
#include <QButtonGroup>
|
||||
#include <QDebug>
|
||||
#include <QProcess>
|
||||
#include <QStringList>
|
||||
#include <QDebug>
|
||||
#include <QTime>
|
||||
#include <QFileDialog>
|
||||
#include <QDateTime>
|
||||
#include <QShortcut>
|
||||
#include <QCalendarWidget>
|
||||
#include "exif.h"
|
||||
|
@ -376,7 +367,6 @@ void DateWidget::mousePressEvent(QMouseEvent *event)
|
|||
calendarWidget->show();
|
||||
}
|
||||
|
||||
|
||||
void DateWidget::focusInEvent(QFocusEvent *event)
|
||||
{
|
||||
setFocus();
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include "ui_webservices.h"
|
||||
|
||||
class QAbstractButton;
|
||||
class QNetworkReply;
|
||||
class QHttpMultiPart;
|
||||
|
||||
class WebServices : public QDialog {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include <QPair>
|
||||
#include <QAbstractItemView>
|
||||
#include <QSettings>
|
||||
#include <QCompleter>
|
||||
#include <QFont>
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
#define TAGWIDGET_H
|
||||
|
||||
#include "groupedlineedit.h"
|
||||
#include <QCompleter>
|
||||
#include <QPair>
|
||||
|
||||
class QCompleter;
|
||||
|
||||
class TagWidget : public GroupedLineEdit {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
1
units.h
1
units.h
|
@ -26,6 +26,7 @@ extern "C" {
|
|||
#define SEAWATER_SALINITY 10300
|
||||
#define FRESHWATER_SALINITY 10000
|
||||
|
||||
#include <stdint.h>
|
||||
/*
|
||||
* Some silly typedefs to make our units very explicit.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue