diff options
author | Orgad Shaneh <orgads@gmail.com> | 2009-10-19 09:59:20 (GMT) |
---|---|---|
committer | Pierre Rossi <pierre.rossi@nokia.com> | 2009-10-19 18:24:46 (GMT) |
commit | 2633931653757decd93dd3939c09f5e07203da1c (patch) | |
tree | cea6f9062b73380ebc83df62121d3306260db33a /src | |
parent | 856efef9bf87e0b7e5ed6ad2ccb225e294321888 (diff) | |
download | Qt-2633931653757decd93dd3939c09f5e07203da1c.zip Qt-2633931653757decd93dd3939c09f5e07203da1c.tar.gz Qt-2633931653757decd93dd3939c09f5e07203da1c.tar.bz2 |
Fix a bug affecting keyboard navigation in the table view
Reviewed-by: thierry
Reviewed-by: pierre
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qlistview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp index 243f542..1d9b6e0 100644 --- a/src/gui/itemviews/qlistview.cpp +++ b/src/gui/itemviews/qlistview.cpp @@ -1105,13 +1105,13 @@ QModelIndex QListView::moveCursor(CursorAction cursorAction, Qt::KeyboardModifie ++row; if (row >= rowCount) return QModelIndex(); - return d->model->index(row, 0, d->root); + return d->model->index(row, d->column, d->root); } const QRect initialRect = rectForIndex(current); QRect rect = initialRect; if (rect.isEmpty()) { - return d->model->index(0, 0, d->root); + return d->model->index(0, d->column, d->root); } if (d->gridSize().isValid()) rect.setSize(d->gridSize()); |