summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-11 07:54:51 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-11 07:54:51 (GMT)
commit48692e42d7fd105ec20d22c3ef078f9f491f085f (patch)
tree4787b79f8b9c8fd051522c65323046f50a68125e
parent80f88fd3026e10afa057be969db734486be6cd1b (diff)
Enable with qt5.6 too
-rw-r--r--src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
index 846b77f..6d3a920 100644
--- a/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
+++ b/src/ksieveui/editor/webengine/sieveeditorwebengineview.cpp
@@ -29,7 +29,6 @@ using namespace KSieveUi;
SieveEditorWebEngineView::SieveEditorWebEngineView(QWidget *parent)
: QWebEngineView(parent)
{
-#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
QWebEngineProfile *profile = new QWebEngineProfile(this);
QWebEnginePage *page = new QWebEnginePage(profile, this);
page->settings()->setAttribute(QWebEngineSettings::JavascriptEnabled, false);
@@ -39,13 +38,16 @@ SieveEditorWebEngineView::SieveEditorWebEngineView(QWidget *parent)
page->settings()->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, false);
page->settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, false);
page->settings()->setAttribute(QWebEngineSettings::XSSAuditingEnabled, false);
- page->settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false);
page->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, false);
+ page->settings()->setAttribute(QWebEngineSettings::ErrorPageEnabled, false);
page->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
-
- setPage(page);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
+ page->settings()->setAttribute(QWebEngineSettings::ScreenCaptureEnabled, false);
+ page->settings()->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, false);
+ page->settings()->setAttribute(QWebEngineSettings::WebGLEnabled, false);
connect(profile, &QWebEngineProfile::downloadRequested, this, &SieveEditorWebEngineView::downloadRequested);
#endif
+ setPage(page);
}
SieveEditorWebEngineView::~SieveEditorWebEngineView()