summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-17 11:07:30 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-17 11:21:34 (GMT)
commit0644e3dce532b1df00a77d3a30c61d6b75d3ff30 (patch)
tree7b4acda816afe82688a26debacc5ddbe4a50646e /src/gui/itemviews/qabstractitemview_p.h
parent56987a10b1bedacc6515de4c28240126ab0cbf29 (diff)
downloadQt-0644e3dce532b1df00a77d3a30c61d6b75d3ff30.zip
Qt-0644e3dce532b1df00a77d3a30c61d6b75d3ff30.tar.gz
Qt-0644e3dce532b1df00a77d3a30c61d6b75d3ff30.tar.bz2
Control-drag header selection behaved wierdly.
The QItemSelectionModel::Current was not set in QTableViewPrivate::selectColumn(). However, Control-drag selection in QTableView behaved differently than other software such as OpenOffice's spreadsheet. Now the behaviour when Control-dragging is that the selection will be set to the opposite of the selection state of the first cell. If that cell is selected, we will deselected the cells while dragging, and conversely, if it isn't selected, the cells will be selected. Reviewed-by: Olivier Task-number: QT-1435 Task-number: 191545
Diffstat (limited to 'src/gui/itemviews/qabstractitemview_p.h')
-rw-r--r--src/gui/itemviews/qabstractitemview_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractitemview_p.h b/src/gui/itemviews/qabstractitemview_p.h
index 725d0a9..6b1ec8e 100644
--- a/src/gui/itemviews/qabstractitemview_p.h
+++ b/src/gui/itemviews/qabstractitemview_p.h
@@ -342,6 +342,7 @@ public:
QMap<int, QPointer<QAbstractItemDelegate> > rowDelegates;
QMap<int, QPointer<QAbstractItemDelegate> > columnDelegates;
QPointer<QItemSelectionModel> selectionModel;
+ QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag;
QAbstractItemView::SelectionMode selectionMode;
QAbstractItemView::SelectionBehavior selectionBehavior;