summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-11 00:45:29 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-11 00:45:29 +0300
commitaf1c55c29d55ff697b2a20440c7177fd7e364655 (patch)
treeaff49a83600fb00bc15656c6d769b5071ad578cd
parent8fcba14753df4842b8ac48fdbc0498f2715d6884 (diff)
downloadsubsurface-af1c55c29d55ff697b2a20440c7177fd7e364655.tar.gz
Print: move some header includes to cpp files
We don't really need includes of display.h and dive.h in printoptions.h and printlayout.h or forward declartions of 'struct dive' and 'struct options' in there. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--qt-ui/printlayout.cpp1
-rw-r--r--qt-ui/printlayout.h4
-rw-r--r--qt-ui/printoptions.cpp1
-rw-r--r--qt-ui/printoptions.h1
4 files changed, 3 insertions, 4 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index cf8c85812..af68383dd 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -6,6 +6,7 @@
#include "mainwindow.h"
#include "printlayout.h"
#include "../dive.h"
+#include "../display.h"
/*
struct options {
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h
index 0b9bbc146..bf34892bf 100644
--- a/qt-ui/printlayout.h
+++ b/qt-ui/printlayout.h
@@ -2,11 +2,9 @@
#define PRINTLAYOUT_H
#include <QPrinter>
-#include <QPainter>
-#include "../display.h"
+#include <QStringList>
class PrintDialog;
-struct dive;
class PrintLayout : public QObject {
Q_OBJECT
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index a0d5b80cf..cd169d3f4 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -1,5 +1,6 @@
#include "printoptions.h"
#include "ui_printoptions.h"
+#include "../display.h"
PrintOptions::PrintOptions(QWidget *parent, struct options *printOpt)
: ui( new Ui::PrintOptions())
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h
index 83e847115..cc0f4f6d6 100644
--- a/qt-ui/printoptions.h
+++ b/qt-ui/printoptions.h
@@ -4,7 +4,6 @@
#include <QWidget>
#include <QSlider>
#include <QLabel>
-#include "../display.h"
namespace Ui {
class PrintOptions;