diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2010-04-08 09:19:16 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2010-04-08 09:19:16 (GMT) |
commit | c7674473ced40e0bf02459f0119bc3eb12bbf9b5 (patch) | |
tree | 05bbd1953626727df0cd6d6ef152dd5150a3b8a1 | |
parent | 978c56d47a6436fab9ab239bc81cdbf245b9ab10 (diff) | |
download | Qt-c7674473ced40e0bf02459f0119bc3eb12bbf9b5.zip Qt-c7674473ced40e0bf02459f0119bc3eb12bbf9b5.tar.gz Qt-c7674473ced40e0bf02459f0119bc3eb12bbf9b5.tar.bz2 |
Add tab navigation to twitter example authentication screen.
-rw-r--r-- | demos/declarative/twitter/TwitterCore/AuthView.qml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/demos/declarative/twitter/TwitterCore/AuthView.qml b/demos/declarative/twitter/TwitterCore/AuthView.qml index 9d9341a..7986e74 100644 --- a/demos/declarative/twitter/TwitterCore/AuthView.qml +++ b/demos/declarative/twitter/TwitterCore/AuthView.qml @@ -24,7 +24,8 @@ Item { font.pixelSize: 16; font.bold: true color: "#151515"; selectionColor: "green" - KeyNavigation.down: passIn + KeyNavigation.tab: passIn + KeyNavigation.backtab: guest focus: true } } @@ -49,8 +50,8 @@ Item { font.pixelSize: 16; font.bold: true color: "#151515"; selectionColor: "green" - KeyNavigation.down: login - KeyNavigation.up: nameIn + KeyNavigation.tab: login + KeyNavigation.backtab: nameIn } } } @@ -69,7 +70,8 @@ Item { } text: "Log in" KeyNavigation.right: guest - KeyNavigation.up: passIn + KeyNavigation.tab: guest + KeyNavigation.backtab: passIn Keys.onReturnPressed: login.doLogin(); Keys.onSelectPressed: login.doLogin(); Keys.onSpacePressed: login.doLogin(); @@ -88,7 +90,8 @@ Item { } text: "Guest" KeyNavigation.left: login - KeyNavigation.up: passIn + KeyNavigation.tab: nameIn + KeyNavigation.backtab: login Keys.onReturnPressed: guest.doGuest(); Keys.onSelectPressed: guest.doGuest(); Keys.onSpacePressed: guest.doGuest(); |