diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-22 15:26:47 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-22 16:19:39 (GMT) |
commit | 88c0d0b8e0e14528cb497d7ea6c30abdb14a4b1c (patch) | |
tree | 323f87e9355e39bca254be4d075b0f4de1c7bd7e /src/gui/itemviews/qitemselectionmodel_p.h | |
parent | 9641be2ac53f77c3037038aaa008010eff1e1d68 (diff) | |
download | Qt-88c0d0b8e0e14528cb497d7ea6c30abdb14a4b1c.zip Qt-88c0d0b8e0e14528cb497d7ea6c30abdb14a4b1c.tar.gz Qt-88c0d0b8e0e14528cb497d7ea6c30abdb14a4b1c.tar.bz2 |
refactor connections/disconnections in QItemSelectionModel
Ther was duplicated code and useless disconnections in the destructor
Diffstat (limited to 'src/gui/itemviews/qitemselectionmodel_p.h')
-rw-r--r-- | src/gui/itemviews/qitemselectionmodel_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel_p.h b/src/gui/itemviews/qitemselectionmodel_p.h index 30583b2..5afa90d 100644 --- a/src/gui/itemviews/qitemselectionmodel_p.h +++ b/src/gui/itemviews/qitemselectionmodel_p.h @@ -70,6 +70,8 @@ public: QItemSelection expandSelection(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) const; + void initModel(QAbstractItemModel *model); + void _q_rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); void _q_columnsAboutToBeRemoved(const QModelIndex &parent, int start, int end); void _q_rowsAboutToBeInserted(const QModelIndex &parent, int start, int end); |