diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-12-13 14:03:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-21 11:32:02 +0100 |
commit | cd8eb15f5e37c843ed8b53f071b8ff11eba6986c (patch) | |
tree | 73dfb9e03ab4e4bd6fffc956cd835e53b9c6d4a9 /src/controls/TableView.qml | |
parent | ae380584de53cf927fe4a7bd62ffb41f73b1faa1 (diff) | |
download | qtquickcontrols-cd8eb15f5e37c843ed8b53f071b8ff11eba6986c.tar.gz |
Fixed: Regression in key navigation on TableView
It turns out the currentIndex/CurrentRow was updated but the selection,
was ignored for the last row in a TableView.
[ChangeLog][Qt Quick Controls][Fixed: TableView regression where
the last row in a TableView could not be selected by keyboard.]
Task-number: QTBUG-35572
Change-Id: Ifdf11f665733dd63ba56e12fe0dabdd7932a4ab9
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/controls/TableView.qml')
-rw-r--r-- | src/controls/TableView.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml index 736ac6e3..595c13ca 100644 --- a/src/controls/TableView.qml +++ b/src/controls/TableView.qml @@ -696,7 +696,7 @@ ScrollView { model: root.model function keySelect(shiftPressed, row) { - if (row < 0 || row === rowCount - 1) + if (row < 0 || row > rowCount - 1) return if (shiftPressed && (selectionMode >= SelectionMode.ExtendedSelection)) { selection.__ranges = new Array() |