mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 02:13:24 +00:00
Print: fix some forward declarations
In the PrintLayout constructor we receive a pointer of PrintDialog, but the type is incomplete, as we only forward declare it in the class header. If we decide to eventually call a method from PrintDialog we also need to include printdialog.h in printlayout.cpp. The patch also fixes a similar issue in printdialog.h. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
95e00b0acd
commit
e4f35fb51a
3 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,6 @@
|
||||||
#include "printdialog.h"
|
#include "printdialog.h"
|
||||||
|
#include "printoptions.h"
|
||||||
|
#include "printlayout.h"
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QPrinter>
|
#include <QPrinter>
|
||||||
#include "../display.h"
|
#include "../display.h"
|
||||||
#include "printoptions.h"
|
|
||||||
#include "printlayout.h"
|
class PrintOptions;
|
||||||
|
class PrintLayout;
|
||||||
|
|
||||||
// should be based on a custom QPrintDialog class
|
// should be based on a custom QPrintDialog class
|
||||||
class PrintDialog : public QDialog {
|
class PrintDialog : public QDialog {
|
||||||
|
|
|
@ -7,9 +7,10 @@
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "profilegraphics.h"
|
#include "profilegraphics.h"
|
||||||
#include "printlayout.h"
|
|
||||||
#include "../dive.h"
|
#include "../dive.h"
|
||||||
#include "../display.h"
|
#include "../display.h"
|
||||||
|
#include "printdialog.h"
|
||||||
|
#include "printlayout.h"
|
||||||
#include "models.h"
|
#include "models.h"
|
||||||
#include "modeldelegates.h"
|
#include "modeldelegates.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue