KDEUI
#include <kbreadcrumbselectionmodel.h>
Detailed Description
Selects the parents of selected items to create breadcrumbs.
For example, if the tree is
- A - B - - C - - D - - - E - - - - F
and E is selected, the selection can contain
- B - D
or
- B - D - E
if isActualSelectionIncluded is true.
The depth of the selection may also be set. For example if the breadcrumbLength is 1:
- D - E
And if breadcrumbLength is 2:
- B - D - E
A KBreadcrumbsProxyModel with a breadcrumbLength of 0 and including the actual selection is the same as a KSelectionProxyModel in the KSelectionProxyModel::ExactSelection configuration.
This can work in two directions. One option is for a single selection in the KBreadcrumbSelectionModel to invoke the breadcrumb selection in its constructor argument.
The other is for a selection in the itemselectionmodel in the constructor argument to cause a breadcrumb selection in this
.
- Since
- 4.5
Definition at line 30 of file kbreadcrumbselectionmodel.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.