diff options
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(); |