QAbstractItemView - Fix docs to match behavior (SelectionMode)

We can deselect the item in single selection mode.
It was introduced in
28a21d98ef

The motivation was QTBUG-8836 - and furthermore it was in
many situations already possible to deselect the item by
clicking in the viewport.

A restore of selection by reacting on the signal
QItemSelectionModel::selectionChanged is easily possible

If the behavior was changed to follow the documentation,
such a similar simply work-around to allow deselect would not be
possible.

Task-number: QTBUG-49217
Change-Id: I5466337dc547414d3e0c045ab35d618dba56c508
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Thorbjørn Martsum 2015-12-02 16:07:55 +01:00 committed by Thorbjørn Lund Martsum
parent 18291af42c
commit f9f777c40a

View File

@ -340,8 +340,8 @@ void QAbstractItemViewPrivate::_q_scrollerStateChanged()
This enum indicates how the view responds to user selections:
\value SingleSelection When the user selects an item, any already-selected
item becomes unselected, and the user cannot unselect the selected item by
clicking on it.
item becomes unselected. It is possible for the user to deselect the selected
item.
\value ContiguousSelection When the user selects an item in the usual way,
the selection is cleared and the new item selected. However, if the user