diff options
author | Stephen Kelly <stephen@kdab.com> | 2010-05-20 11:07:41 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-05-20 11:07:41 (GMT) |
commit | 2c1d1c136102a17eef9ae3c4e9f0cf01338306ae (patch) | |
tree | 646ad769de11c8d4d3fe42b7c4cb0436149ec490 /src/gui/itemviews/qitemselectionmodel_p.h | |
parent | 76fcf30c0f275a7c9f9752b1be5cb1d5ba98d9b6 (diff) | |
download | Qt-2c1d1c136102a17eef9ae3c4e9f0cf01338306ae.zip Qt-2c1d1c136102a17eef9ae3c4e9f0cf01338306ae.tar.gz Qt-2c1d1c136102a17eef9ae3c4e9f0cf01338306ae.tar.bz2 |
Deselect the current selection when the QItemSelectionModel::model is reset.
Merge-request: 639
Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/gui/itemviews/qitemselectionmodel_p.h')
-rw-r--r-- | src/gui/itemviews/qitemselectionmodel_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel_p.h b/src/gui/itemviews/qitemselectionmodel_p.h index 5afa90d..c2fe976 100644 --- a/src/gui/itemviews/qitemselectionmodel_p.h +++ b/src/gui/itemviews/qitemselectionmodel_p.h @@ -78,6 +78,7 @@ public: void _q_columnsAboutToBeInserted(const QModelIndex &parent, int start, int end); void _q_layoutAboutToBeChanged(); void _q_layoutChanged(); + void _q_modelAboutToBeReset(); inline void remove(QList<QItemSelectionRange> &r) { @@ -93,6 +94,8 @@ public: currentSelection.clear(); } + void clearCurrentIndex(); + QPointer<QAbstractItemModel> model; QItemSelection ranges; QItemSelection currentSelection; |