From af1c55c29d55ff697b2a20440c7177fd7e364655 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 11 Jul 2013 00:45:29 +0300 Subject: 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 --- qt-ui/printlayout.cpp | 1 + qt-ui/printlayout.h | 4 +--- qt-ui/printoptions.cpp | 1 + qt-ui/printoptions.h | 1 - 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 -#include -#include "../display.h" +#include 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 #include #include -#include "../display.h" namespace Ui { class PrintOptions; -- cgit v1.2.3-70-g09d2