From 6534b09073791398bad99863821740e986915bff Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 1 Jun 2016 17:54:49 +0200 Subject: Add focusOnNavigationEnabled setting The focusOnNavigationEnabled setting allows changing the behavior of whether a WebEngine view (widget or quick) will automatically get focus, whenever a navigation action happens (load, reload, previous history entry, etc). The default behavior before this patch was to always grab the focus. [ChangeLog][QtWebEngine][General] Add focusOnNavigationEnabled setting which allows controlling whether a web view will receive focus on a navigation request. Previously the view always received the focus. Task-number: QTBUG-52999 Change-Id: I6d30d973a41b53011131f21dcecbf6ec4d652759 Reviewed-by: Kai Koehne --- src/core/web_engine_settings.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/web_engine_settings.h') diff --git a/src/core/web_engine_settings.h b/src/core/web_engine_settings.h index e21eee8a9..55e659b53 100644 --- a/src/core/web_engine_settings.h +++ b/src/core/web_engine_settings.h @@ -79,7 +79,8 @@ public: WebGLEnabled, Accelerated2dCanvasEnabled, AutoLoadIconsForPage, - TouchIconsEnabled + TouchIconsEnabled, + FocusOnNavigationEnabled }; // Must match the values from the public API in qwebenginesettings.h. -- cgit v1.2.3