summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printer.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-30 14:27:04 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-30 14:27:04 -0800
commit47d5dc9681361c56da5b37788371689be5ab7bc4 (patch)
tree819d85295031cf84959b5ec61760c4d009f63ac8 /desktop-widgets/printer.h
parentb5f0a4a02519aba130b8e061f222cb4ae46444ef (diff)
parent529a4d499b8dad35de6cd43e3004017ccfd288aa (diff)
downloadsubsurface-47d5dc9681361c56da5b37788371689be5ab7bc4.tar.gz
Merge branch 'webengine' of https://github.com/atdotde/subsurface
Diffstat (limited to 'desktop-widgets/printer.h')
-rw-r--r--desktop-widgets/printer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop-widgets/printer.h b/desktop-widgets/printer.h
index e5f16d77d..fc867bb3c 100644
--- a/desktop-widgets/printer.h
+++ b/desktop-widgets/printer.h
@@ -2,7 +2,11 @@
#define PRINTER_H
#include <QPrinter>
+#ifdef USE_WEBENGINE
+#include <QWebEngineView>
+#else
#include <QWebView>
+#endif
#include <QRect>
#include <QPainter>
@@ -20,7 +24,11 @@ public:
private:
QPaintDevice *paintDevice;
+#ifdef USE_WEBENGINE
+ QWebEngineView *webView;
+#else
QWebView *webView;
+#endif
print_options *printOptions;
template_options *templateOptions;
QSize pageSize;