diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-07-08 14:14:21 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-07-17 11:33:07 +0000 |
commit | c53fd1412efebbbf11798fb81735a520c72464e0 (patch) | |
tree | 8e3bb3341995cade606eb8478388509cf6f58efc /src/core/web_engine_settings.cpp | |
parent | e3a2cea65ab39e111496b9d4caa8c4807ad41894 (diff) |
Export fullscreen support setting to QML API
Let applications tell QtWebEngine whether they support the fullscreen
API or not.
Change-Id: I97681cf1c68a9d7a3b8bb7dcca861ec0b0a79ed6
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/web_engine_settings.cpp')
-rw-r--r-- | src/core/web_engine_settings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp index f907f6e00..b59ec7311 100644 --- a/src/core/web_engine_settings.cpp +++ b/src/core/web_engine_settings.cpp @@ -214,6 +214,7 @@ void WebEngineSettings::initDefaults(bool offTheRecord) m_attributes.insert(ScrollAnimatorEnabled, false); m_attributes.insert(ErrorPageEnabled, true); m_attributes.insert(PluginsEnabled, false); + m_attributes.insert(FullscreenSupportEnabled, false); // Default fonts QFont defaultFont; @@ -279,6 +280,7 @@ void WebEngineSettings::applySettingsToWebPreferences(content::WebPreferences *p prefs->enable_scroll_animator = testAttribute(ScrollAnimatorEnabled); prefs->enable_error_page = testAttribute(ErrorPageEnabled); prefs->plugins_enabled = testAttribute(PluginsEnabled); + prefs->fullscreen_supported = testAttribute(FullscreenSupportEnabled); // Fonts settings. prefs->standard_font_family_map[content::kCommonScript] = toString16(fontFamily(StandardFont)); |