summaryrefslogtreecommitdiffstats
path: root/examples/webengine
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-03-21 11:59:46 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-03-21 11:53:08 +0000
commit01c763c83d0c846164dcb5b69b9343e6ee2ac0b7 (patch)
tree0e8d44acc5764b9838da9f58b734c20cfd8c19f3 /examples/webengine
parent3efb842be6e2c663b75f2e920fca00dd71da2ce7 (diff)
Fix tabbing in recipebrowser
Fixes: QTBUG-55146 Change-Id: I034ebb3e65341b5424a24d5a143013d726d55e10 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/webengine')
-rw-r--r--examples/webengine/recipebrowser/resources/qml/RecipeList.qml2
-rw-r--r--examples/webengine/recipebrowser/resources/qml/main.qml6
2 files changed, 3 insertions, 5 deletions
diff --git a/examples/webengine/recipebrowser/resources/qml/RecipeList.qml b/examples/webengine/recipebrowser/resources/qml/RecipeList.qml
index 24be23a64..41806986c 100644
--- a/examples/webengine/recipebrowser/resources/qml/RecipeList.qml
+++ b/examples/webengine/recipebrowser/resources/qml/RecipeList.qml
@@ -48,7 +48,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.1
import QtQuick.Controls 2.0
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.0
diff --git a/examples/webengine/recipebrowser/resources/qml/main.qml b/examples/webengine/recipebrowser/resources/qml/main.qml
index 2639b6b5d..a9893ed67 100644
--- a/examples/webengine/recipebrowser/resources/qml/main.qml
+++ b/examples/webengine/recipebrowser/resources/qml/main.qml
@@ -49,7 +49,7 @@
****************************************************************************/
import QtQml 2.0
-import QtQuick 2.0
+import QtQuick 2.1
import QtQuick.Controls 2.0
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.0
@@ -98,7 +98,7 @@ ApplicationWindow {
Layout.fillWidth: true
Layout.fillHeight: true
focus: true
- KeyNavigation.tab: webView
+ activeFocusOnTab: true
onRecipeSelected: function(url) {
webView.showRecipe(url)
}
@@ -109,8 +109,6 @@ ApplicationWindow {
Layout.preferredWidth: 2 * parent.width / 3
Layout.fillWidth: true
Layout.fillHeight: true
- KeyNavigation.tab: recipeList
- KeyNavigation.priority: KeyNavigation.BeforeItem
// Make sure focus is not taken by the web view, so user can continue navigating
// recipes with the keyboard.
settings.focusOnNavigationEnabled: false