diff options
author | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-03-02 09:51:53 +0100 |
---|---|---|
committer | Peter Varga <pvarga@inf.u-szeged.hu> | 2016-03-25 14:12:27 +0000 |
commit | bd3d10a4a892166c79563e0ef37b3065420f99d0 (patch) | |
tree | cd2c79bc29e628c87f933fd405f27772f79e034c /examples/webengine | |
parent | 7a49313c84ccd4779e396b7bc8341a331d90f96f (diff) |
Add settings for FaviconManager's icon download modes
Change-Id: I8e4b11089de29623ed39ec6b13fe30be734baa3e
Task-number: QTBUG-51179
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'examples/webengine')
-rw-r--r-- | examples/webengine/quicknanobrowser/BrowserWindow.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/webengine/quicknanobrowser/BrowserWindow.qml b/examples/webengine/quicknanobrowser/BrowserWindow.qml index 0b95c0db1..b468b2a77 100644 --- a/examples/webengine/quicknanobrowser/BrowserWindow.qml +++ b/examples/webengine/quicknanobrowser/BrowserWindow.qml @@ -84,6 +84,8 @@ ApplicationWindow { property alias errorPageEnabled: errorPageEnabled.checked; property alias pluginsEnabled: pluginsEnabled.checked; property alias fullScreenSupportEnabled: fullScreenSupportEnabled.checked; + property alias autoLoadIconsForPage: autoLoadIconsForPage.checked; + property alias touchIconsEnabled: touchIconsEnabled.checked; } Action { @@ -294,6 +296,19 @@ ApplicationWindow { checked: (currentWebView.profile.httpCacheType == WebEngineProfile.DiskHttpCache) onToggled: currentWebView.profile.httpCacheType = checked ? WebEngineProfile.DiskHttpCache : WebEngineProfile.MemoryHttpCache } + MenuItem { + id: autoLoadIconsForPage + text: "Icons On" + checkable: true + checked: WebEngine.settings.autoLoadIconsForPage + } + MenuItem { + id: touchIconsEnabled + text: "Touch Icons On" + checkable: true + checked: WebEngine.settings.touchIconsEnabled + enabled: autoLoadIconsForPage.checked + } } } } @@ -365,6 +380,8 @@ ApplicationWindow { settings.errorPageEnabled: appSettings.errorPageEnabled settings.pluginsEnabled: appSettings.pluginsEnabled settings.fullScreenSupportEnabled: appSettings.fullScreenSupportEnabled + settings.autoLoadIconsForPage: appSettings.autoLoadIconsForPage + settings.touchIconsEnabled: appSettings.touchIconsEnabled onCertificateError: { error.defer() |