diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-13 13:32:40 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 13:03:56 -0800 |
commit | fa6eb6144bc756380c4148d05a67a99b0ac25ef3 (patch) | |
tree | 2b8090561e1ad3e7c982cd6af56d2b08dbf4b8cf /desktop-widgets/printer.cpp | |
parent | 2239ffe13c1babcae7a0822c83ab8d0f23317358 (diff) | |
download | subsurface-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.cpp')
-rw-r--r-- | desktop-widgets/printer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop-widgets/printer.cpp b/desktop-widgets/printer.cpp index 05f82d688..93155daa3 100644 --- a/desktop-widgets/printer.cpp +++ b/desktop-widgets/printer.cpp @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include "printer.h" +#include "mainwindow.h" #include "templatelayout.h" #include "core/statistics.h" #include "core/qthelper.h" @@ -7,6 +8,7 @@ #include <algorithm> #include <QPainter> +#include <QPrinter> #include <QtWebKitWidgets> #include <QWebElementCollection> #include <QWebElement> @@ -28,7 +30,8 @@ Printer::~Printer() delete webView; } -void Printer::putProfileImage(QRect profilePlaceholder, QRect viewPort, QPainter *painter, struct dive *dive, QPointer<ProfileWidget2> profile) +void Printer::putProfileImage(const QRect &profilePlaceholder, const QRect &viewPort, QPainter *painter, + struct dive *dive, QPointer<ProfileWidget2> profile) { int x = profilePlaceholder.x() - viewPort.x(); int y = profilePlaceholder.y() - viewPort.y(); |