diff options
author | Berthold Krevert <berthold.krevert@basyskom.com> | 2014-04-15 15:40:46 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-15 16:57:58 +0200 |
commit | ea9add905768a26ce86ab542615a193296642732 (patch) | |
tree | 483646581e16ea661a3136532c68e969c0aa958a /tests | |
parent | 53fca456b2d5c4d290592846c0a14242ac218e1d (diff) | |
download | qtquickcontrols-ea9add905768a26ce86ab542615a193296642732.tar.gz |
Fix manual keynavigation test
Update the manual keynavigation test to QtQuick.Controls 1.2 and use
other background colors to better highlight the focus rectangle
Change-Id: I4022918cf1dc00e853dadd89a8682680063d2402
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/keynavigation.qml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/manual/keynavigation.qml b/tests/manual/keynavigation.qml index 66fd4875..ac550959 100644 --- a/tests/manual/keynavigation.qml +++ b/tests/manual/keynavigation.qml @@ -39,7 +39,7 @@ ****************************************************************************/ import QtQuick 2.2 -import QtQuick.Controls 0.1 +import QtQuick.Controls 1.2 ApplicationWindow { width: 400 @@ -48,7 +48,7 @@ ApplicationWindow { Rectangle { id: back anchors.fill: parent - color: enabled ? "red" : "blue" + color: enabled ? "lightgray" : "wheat" } Column { @@ -109,11 +109,12 @@ ApplicationWindow { } } - ButtonRow { - exclusive: true + Row { + ExclusiveGroup { id: exclusive } RadioButton { id: radioButton1 text: "RadioButton 1" + exclusiveGroup: exclusive activeFocusOnPress: true KeyNavigation.tab: radioButton2 KeyNavigation.backtab: checkbox3 @@ -122,6 +123,7 @@ ApplicationWindow { RadioButton { id: radioButton2 text: "RadioButton 2" + exclusiveGroup: exclusive activeFocusOnPress: true KeyNavigation.tab: radioButton3 KeyNavigation.backtab: radioButton1 @@ -130,6 +132,7 @@ ApplicationWindow { RadioButton { id: radioButton3 text: "RadioButton 3" + exclusiveGroup: exclusive activeFocusOnPress: true KeyNavigation.backtab: radioButton2 onClicked: back.enabled = !back.enabled |