diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-26 09:12:35 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-04-26 11:01:37 +0200 |
commit | ff20056c16977c4701b6b76d6c78933898e21874 (patch) | |
tree | fc351c1c63a3dd9d464db0492b9618b188302b7f /components/mailviewer/contents/ui/HtmlContent.qml | |
parent | a7e6a9cd045fc09cd3fb9db81c1773c2ca34c2f4 (diff) | |
download | kube-ff20056c16977c4701b6b76d6c78933898e21874.tar.gz kube-ff20056c16977c4701b6b76d6c78933898e21874.zip |
Prepare bits that keep the webview from grabbing focus
Will be available from webengine 1.4 (qt 5.8) on.
Diffstat (limited to 'components/mailviewer/contents/ui/HtmlContent.qml')
-rw-r--r-- | components/mailviewer/contents/ui/HtmlContent.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/mailviewer/contents/ui/HtmlContent.qml b/components/mailviewer/contents/ui/HtmlContent.qml index 0b6722a5..f3bfb4c9 100644 --- a/components/mailviewer/contents/ui/HtmlContent.qml +++ b/components/mailviewer/contents/ui/HtmlContent.qml | |||
@@ -18,6 +18,7 @@ | |||
18 | 18 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Controls 1.3 | 20 | import QtQuick.Controls 1.3 |
21 | //TODO import QtWebEngine 1.4 | ||
21 | import QtWebEngine 1.3 | 22 | import QtWebEngine 1.3 |
22 | 23 | ||
23 | Item { | 24 | Item { |
@@ -42,6 +43,8 @@ Item { | |||
42 | console.warn("Error is ", loadRequest.errorString); | 43 | console.warn("Error is ", loadRequest.errorString); |
43 | } | 44 | } |
44 | } | 45 | } |
46 | //TODO The webview should not steal focus (depends on webengine 1.4) | ||
47 | //focusOnNavigationEnabled: false | ||
45 | settings { | 48 | settings { |
46 | webGLEnabled: false | 49 | webGLEnabled: false |
47 | touchIconsEnabled: false | 50 | touchIconsEnabled: false |
@@ -63,6 +66,10 @@ Item { | |||
63 | autoLoadIconsForPage: false | 66 | autoLoadIconsForPage: false |
64 | accelerated2dCanvasEnabled: false | 67 | accelerated2dCanvasEnabled: false |
65 | } | 68 | } |
69 | //TODO Disable the context menu (depends on webengine 1.4) | ||
70 | // onContextMenuRequested: function(request) { | ||
71 | // request.accepted = true | ||
72 | // } | ||
66 | } | 73 | } |
67 | onContentChanged: { | 74 | onContentChanged: { |
68 | htmlView.loadHtml(content, "file:///"); | 75 | htmlView.loadHtml(content, "file:///"); |