diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-09-16 15:29:09 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-09-16 15:29:09 +0200 |
commit | e9fffaa5e11c941e363114412b562d67c97ee145 (patch) | |
tree | 5713e73ac6aa25cd95941ab98b697625fb035e97 /tests/auto/controls/data/tst_tableview.qml | |
parent | 13d66e8ae27761abfd0b81577c2aa2c7ab3e39c5 (diff) | |
parent | 6a7a824b970d12471f9219c84a57eb91231c59fe (diff) | |
download | qtquickcontrols-e9fffaa5e11c941e363114412b562d67c97ee145.tar.gz |
Merge remote-tracking branch 'origin/5.3' into 5.4
Conflicts:
.qmake.conf
src/controls/Styles/Base/ComboBoxStyle.qml
Change-Id: Iaf45bc77be0bd80d21af49a5663dc9fba3caa0da
Diffstat (limited to 'tests/auto/controls/data/tst_tableview.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tableview.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_tableview.qml b/tests/auto/controls/data/tst_tableview.qml index 40eb5843..b802e7ff 100644 --- a/tests/auto/controls/data/tst_tableview.qml +++ b/tests/auto/controls/data/tst_tableview.qml @@ -280,6 +280,7 @@ TestCase { table.selection.selectAll() compare(table.selection.__ranges.length, 1) verify(rangeTest([[0,49]], table)) + table.destroy() } function test_selectionCount() { @@ -300,6 +301,7 @@ TestCase { compare(table.selection.count, 100) table.model = 50 compare(table.selection.count, 0) + table.destroy() } function test_selectionForeach() { @@ -363,6 +365,7 @@ TestCase { table.selection.select(0) table.selection.forEach(addEven) compare(iteration, 50) + table.destroy() } function test_selectionContains() { @@ -383,6 +386,7 @@ TestCase { verify(!table.selection.contains(6)) verify(!table.selection.contains(7)) verify(table.selection.contains(8)) + table.destroy() } function test_initializedStyleData() { @@ -400,6 +404,7 @@ TestCase { waitForRendering(table) compare(table.items, [0, 1, 2]); compare(table.rows, [0, 1, 2]); + table.destroy() } @@ -882,6 +887,13 @@ TestCase { return undefined // no matching child found } + Component { + id: textFieldDelegate + TextField { + objectName: "delegate-" + styleData.row + "-" + styleData.column + } + } + function test_activeFocusOnTab() { if (!SystemInfo.tabAllWidgets) skip("This function doesn't support NOT iterating all.") @@ -933,6 +945,23 @@ TestCase { verify(control.control1.activeFocus) verify(!control.control2.activeFocus) verify(!control.control3.activeFocus) + + control.control2.itemDelegate = textFieldDelegate + + keyPress(Qt.Key_Tab) + verify(!control.control1.activeFocus) + verify(control.control2.activeFocus) + verify(!control.control3.activeFocus) + + for (var row = 0; row < 3; ++row) { + for (var col = 0; col < 2; ++col) { + keyPress(Qt.Key_Tab) + var delegate = findAChild(control.control2.__currentRowItem, "delegate-" + row + "-" + col) + verify(delegate) + verify(delegate.activeFocus) + } + } + control.destroy() } } |