summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qtableview_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-10-12 12:28:33 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-10-12 14:33:34 (GMT)
commit8da7252de0badb818302763cbe62c38ad699f1f3 (patch)
treec2ad6d88a1415d244f5b70ed7e7555642a6ca180 /src/gui/itemviews/qtableview_p.h
parent857b7443b1bd4311a02753bea7b8c7839f1ad311 (diff)
downloadQt-8da7252de0badb818302763cbe62c38ad699f1f3.zip
Qt-8da7252de0badb818302763cbe62c38ad699f1f3.tar.gz
Qt-8da7252de0badb818302763cbe62c38ad699f1f3.tar.bz2
Fixed keyboard navigation for QTableView
Keyboard navigation didn't work in the following cases: - The last column was disabled and we pressed the tab key when at the 2nd last column. (See ref. task). - Spans with their anchor column or row hidden or disabled. - Navigation would not preserve the original row/column when traversing a span horizontally/vertically. Auto-tests submitted with this commit. Task-number: QTBUG-3878 Reviewed-by: Olivier
Diffstat (limited to 'src/gui/itemviews/qtableview_p.h')
-rw-r--r--src/gui/itemviews/qtableview_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtableview_p.h b/src/gui/itemviews/qtableview_p.h
index c785bd7..9fa14c2 100644
--- a/src/gui/itemviews/qtableview_p.h
+++ b/src/gui/itemviews/qtableview_p.h
@@ -135,7 +135,8 @@ public:
rowSectionAnchor(-1), columnSectionAnchor(-1),
columnResizeTimerID(0), rowResizeTimerID(0),
horizontalHeader(0), verticalHeader(0),
- sortingEnabled(false), geometryRecursionBlock(false)
+ sortingEnabled(false), geometryRecursionBlock(false),
+ visualCursor(QPoint())
{
wrapItemText = true;
#ifndef QT_NO_DRAGANDDROP
@@ -183,6 +184,7 @@ public:
QWidget *cornerWidget;
bool sortingEnabled;
bool geometryRecursionBlock;
+ QPoint visualCursor; // (Row,column) cell coordinates to track through span navigation.
QSpanCollection spans;