mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
printing: move #includes from headers to source files
To decrease include-file interdependencies. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2239ffe13c
commit
fa6eb6144b
10 changed files with 39 additions and 21 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue