aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r--src/webengine/webview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp
index 55efad7..a4bff5e 100644
--- a/src/webengine/webview.cpp
+++ b/src/webengine/webview.cpp
@@ -96,6 +96,7 @@ WebView::WebView(MainWindow *parentMainWindow, QWidget *parent) :
this->triggerPageAction(QWebEnginePage::SavePage);
});
+#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
QAction *printAction = m_pageMenu->addAction(tr("Print page"));
connect(printAction, &QAction::triggered, [this]() {
QPrinter *printer = new QPrinter(QPrinterInfo::defaultPrinter());
@@ -108,6 +109,7 @@ WebView::WebView(MainWindow *parentMainWindow, QWidget *parent) :
}
delete dlg;
});
+#endif
QAction *printPdfAction = m_pageMenu->addAction(tr("Print to PDF"));
connect(printPdfAction, &QAction::triggered, [this]() {