summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qitemselectionmodel_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-08-07 15:14:31 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-08-07 15:14:31 (GMT)
commitd13418effc5f00474541ae513a30c9a42c2a1cb3 (patch)
tree9ce95e34eaf57b2936cc77c7004988493433c093 /src/gui/itemviews/qitemselectionmodel_p.h
parent132a319dc782ef1feebe6582fb6f05dc91df74bb (diff)
downloadQt-d13418effc5f00474541ae513a30c9a42c2a1cb3.zip
Qt-d13418effc5f00474541ae513a30c9a42c2a1cb3.tar.gz
Qt-d13418effc5f00474541ae513a30c9a42c2a1cb3.tar.bz2
QItemSelectionModel did not send selectionChanged signal when deleting an item
in a tree-like model with one of its grand-children being selected. Added recursive deselection for the model. Task-number: 232634 Reviewed-by: thierry
Diffstat (limited to 'src/gui/itemviews/qitemselectionmodel_p.h')
-rw-r--r--src/gui/itemviews/qitemselectionmodel_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qitemselectionmodel_p.h b/src/gui/itemviews/qitemselectionmodel_p.h
index 18ad506..8176d4c 100644
--- a/src/gui/itemviews/qitemselectionmodel_p.h
+++ b/src/gui/itemviews/qitemselectionmodel_p.h
@@ -77,6 +77,8 @@ public:
void _q_layoutAboutToBeChanged();
void _q_layoutChanged();
+ void recursiveDeselect(const QItemSelectionRange &range);
+
inline void remove(QList<QItemSelectionRange> &r)
{
QList<QItemSelectionRange>::const_iterator it = r.constBegin();