summaryrefslogtreecommitdiffstats
path: root/examples/webengine/recipebrowser/resources
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-09-30 14:04:03 +0200
committerKai Koehne <kai.koehne@qt.io>2016-10-04 11:40:13 +0000
commitecd3e42930eb7e0b1ec65010291f8fba23a9f163 (patch)
tree759e41e42e3466c32239c4b47691ad452543e21c /examples/webengine/recipebrowser/resources
parent7b0b30ace1115b71a408cceeff9f77f13554c333 (diff)
RecipeBrowser: Hide context menu
Change-Id: Ia7438535398aa9ae39d0c49e244c4cde05a55b89 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/webengine/recipebrowser/resources')
-rw-r--r--examples/webengine/recipebrowser/resources/qml/main.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/webengine/recipebrowser/resources/qml/main.qml b/examples/webengine/recipebrowser/resources/qml/main.qml
index 84067e8f5..b49cb6649 100644
--- a/examples/webengine/recipebrowser/resources/qml/main.qml
+++ b/examples/webengine/recipebrowser/resources/qml/main.qml
@@ -102,6 +102,11 @@ ApplicationWindow {
// Make sure focus is not taken by the web view, so user can continue navigating
// recipes with the keyboard.
settings.focusOnNavigationEnabled: false
+
+ onContextMenuRequested: function(request) {
+ request.accepted = true
+ }
+
property bool firstLoadComplete: false
onLoadingChanged: {
if (loadRequest.status === WebEngineView.LoadSucceededStatus