diff options
author | Liang Qi <liang.qi@digia.com> | 2013-05-07 14:21:12 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-15 10:01:38 +0200 |
commit | 795b9fdc52993e0199f462add398b5de8e4d75c4 (patch) | |
tree | 91e4e7b3748d384ce4e8fa96c8104b106c7556c1 /tests/auto/controls/data/tst_tabview.qml | |
parent | 72232a9ba0fa0ac328d60f1a1c8965cb303f4a48 (diff) | |
download | qtquickcontrols-795b9fdc52993e0199f462add398b5de8e4d75c4.tar.gz |
Mac: respect the system settings in Full Keyboard Access
Because we use TableView as ListView, then only SpinBox, TextField, TextAre
and TableView could be selected.
Change-Id: I65ca106e60a57d86e029647653ae110fd81edaa4
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests/auto/controls/data/tst_tabview.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tabview.qml | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/tests/auto/controls/data/tst_tabview.qml b/tests/auto/controls/data/tst_tabview.qml index ad132265..43c42c99 100644 --- a/tests/auto/controls/data/tst_tabview.qml +++ b/tests/auto/controls/data/tst_tabview.qml @@ -236,16 +236,16 @@ TestCase { active: true; \ Column { \ objectName: "column1"; \ - property alias button1: _button1; \ - property alias button2: _button2; \ + property alias child1: _child1; \ + property alias child2: _child2; \ anchors.fill: parent; \ - Button { \ - id: _button1; \ - text: "button 1 in Tab1"; \ + TextField { \ + id: _child1; \ + text: "textfile 1 in Tab1"; \ } \ - Button { \ - id: _button2; \ - text: "button 2 in Tab1"; \ + TextField { \ + id: _child2; \ + text: "textfile 2 in Tab1"; \ } \ } \ } \ @@ -255,16 +255,16 @@ TestCase { active: true; \ Column { \ objectName: "column2"; \ - property alias button3: _button3; \ - property alias button4: _button4; \ + property alias child3: _child3; \ + property alias child4: _child4; \ anchors.fill: parent; \ - Button { \ - id: _button3; \ - text: "button 1 in Tab2"; \ + TextField { \ + id: _child3; \ + text: "textfile 1 in Tab2"; \ } \ - Button { \ - id: _button4; \ - text: "button 2 in Tab2"; \ + TextField { \ + id: _child4; \ + text: "textfile 2 in Tab2"; \ } \ } \ } \ @@ -280,10 +280,10 @@ TestCase { var column2 = getColumnItem(tabView.tab2, "column2") verify(column2 !== null) - var button1 = column1.button1 - verify(button1 !== null) - var button3 = column2.button3 - verify(button3 !== null) + var child1 = column1.child1 + verify(child1 !== null) + var child3 = column2.child3 + verify(child3 !== null) var tabbarItem = getTabBarItem(tabView) verify(tabbarItem !== null) @@ -300,7 +300,7 @@ TestCase { waitForRendering(tab1) mouseClick(tab1, tab1.width/2, tab1.height/2) - verify(button1.activeFocus) + verify(child1.activeFocus) var tab2 = mouseareas[1].parent verify(tab2 !== null) @@ -308,15 +308,15 @@ TestCase { waitForRendering(tab2) mouseClick(tab2, tab2.width/2, tab2.height/2) - verify(button3.activeFocus) + verify(child3.activeFocus) waitForRendering(tab1) mouseClick(tab1, tab1.width/2, tab1.height/2) - verify(button1.activeFocus) + verify(child1.activeFocus) waitForRendering(tab2) mouseClick(tab2, tab2.width/2, tab2.height/2) - verify(button3.activeFocus) + verify(child3.activeFocus) tabView.destroy() } |