Commit 937942d3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against 5.12 now

parent 082e9615
......@@ -44,16 +44,11 @@ MarkdownEnginePage::MarkdownEnginePage(QObject *parent)
settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, false);
settings()->setAttribute(QWebEngineSettings::AllowRunningInsecureContent, false);
// FreeBSD actually ships QtWebengine 5.9 with Qt 5.10/5.11, so these enums do not exist there
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) && !defined(Q_OS_FREEBSD)
settings()->setAttribute(QWebEngineSettings::ShowScrollBars, true);
settings()->setAttribute(QWebEngineSettings::AllowWindowActivationFromJavaScript, false);
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) && !defined(Q_OS_FREEBSD)
settings()->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture, false);
settings()->setAttribute(QWebEngineSettings::JavascriptCanPaste, false);
settings()->setAttribute(QWebEngineSettings::WebRTCPublicInterfacesOnly, false);
#endif
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 13, 0)
settings()->setAttribute(QWebEngineSettings::PdfViewerEnabled, false);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment