From fa6eb6144bc756380c4148d05a67a99b0ac25ef3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 13 Dec 2020 13:32:40 +0100 Subject: printing: move #includes from headers to source files To decrease include-file interdependencies. Signed-off-by: Berthold Stoeger --- desktop-widgets/printer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/printer.cpp') 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 #include +#include #include #include #include @@ -28,7 +30,8 @@ Printer::~Printer() delete webView; } -void Printer::putProfileImage(QRect profilePlaceholder, QRect viewPort, QPainter *painter, struct dive *dive, QPointer profile) +void Printer::putProfileImage(const QRect &profilePlaceholder, const QRect &viewPort, QPainter *painter, + struct dive *dive, QPointer profile) { int x = profilePlaceholder.x() - viewPort.x(); int y = profilePlaceholder.y() - viewPort.y(); -- cgit v1.2.3-70-g09d2