summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/printer.h
diff options
context:
space:
mode:
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;