aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printer.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-13 13:32:40 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-17 13:03:56 -0800
commitfa6eb6144bc756380c4148d05a67a99b0ac25ef3 (patch)
tree2b8090561e1ad3e7c982cd6af56d2b08dbf4b8cf /desktop-widgets/printer.h
parent2239ffe13c1babcae7a0822c83ab8d0f23317358 (diff)
downloadsubsurface-fa6eb6144bc756380c4148d05a67a99b0ac25ef3.tar.gz
printing: move #includes from headers to source files
To decrease include-file interdependencies. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/printer.h')
-rw-r--r--desktop-widgets/printer.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/desktop-widgets/printer.h b/desktop-widgets/printer.h
index c95700684..5c9fc661b 100644
--- a/desktop-widgets/printer.h
+++ b/desktop-widgets/printer.h
@@ -2,14 +2,15 @@
#ifndef PRINTER_H
#define PRINTER_H
-#include <QPrinter>
-#include <QWebView>
-#include <QRect>
-#include <QPainter>
-
#include "printoptions.h"
#include "templateedit.h"
+class ProfileWidget2;
+class QPainter;
+class QPaintDevice;
+class QRect;
+class QWebView;
+
class Printer : public QObject {
Q_OBJECT
@@ -30,7 +31,8 @@ private:
int dpi;
void render(int Pages);
void flowRender();
- void putProfileImage(QRect box, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile);
+ void putProfileImage(const QRect &box, const QRect &viewPort, QPainter *painter,
+ struct dive *dive, QPointer<ProfileWidget2> profile);
private slots:
void templateProgessUpdated(int value);