Commit 34b59c06 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Now we depend against qt5.13

parent e1df0b64
Pipeline #21296 passed with stage
in 33 minutes and 48 seconds
......@@ -20,7 +20,6 @@
#include "markdownenginepage.h"
#include <QWebEngineSettings>
#include <QWebEngineProfile>
#include <qtwebenginewidgetsversion.h>
MarkdownEnginePage::MarkdownEnginePage(QObject *parent)
: QWebEnginePage(parent)
......@@ -49,9 +48,7 @@ MarkdownEnginePage::MarkdownEnginePage(QObject *parent)
settings()->setAttribute(QWebEngineSettings::PlaybackRequiresUserGesture, false);
settings()->setAttribute(QWebEngineSettings::JavascriptCanPaste, false);
settings()->setAttribute(QWebEngineSettings::WebRTCPublicInterfacesOnly, false);
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 13, 0)
settings()->setAttribute(QWebEngineSettings::PdfViewerEnabled, false);
#endif
profile()->setPersistentCookiesPolicy(QWebEngineProfile::NoPersistentCookies);
}
......
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