diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-08 02:28:01 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2010-03-08 02:57:56 (GMT) |
commit | 7142fbe52cfca2887cb8ee083d4d91c35ef249f8 (patch) | |
tree | 69d9d4c11656fb01c3b2f32c95199b03ec12ac86 /src | |
parent | 2458cb45665b0fe3144266122f876bd541de9c42 (diff) | |
download | Qt-7142fbe52cfca2887cb8ee083d4d91c35ef249f8.zip Qt-7142fbe52cfca2887cb8ee083d4d91c35ef249f8.tar.gz Qt-7142fbe52cfca2887cb8ee083d4d91c35ef249f8.tar.bz2 |
QTableView: fix navigating with keyboard with spans not scrolling
We cannot use isIndexHidden in ScrollTo because that would return
true if the index is in a span.
Task-number: QTBUG-8777
Reviewed-by: Markus Goetz
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/itemviews/qtableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp index cf1b542..c824a8a 100644 --- a/src/gui/itemviews/qtableview.cpp +++ b/src/gui/itemviews/qtableview.cpp @@ -2554,7 +2554,7 @@ void QTableView::scrollTo(const QModelIndex &index, ScrollHint hint) // check if we really need to do anything if (!d->isIndexValid(index) || (d->model->parent(index) != d->root) - || isIndexHidden(index)) + || isRowHidden(index.row()) || isColumnHidden(index.column())) return; QSpanCollection::Span span; |