#include "kselectionproxymodel.h"
#include <QtCore/QStack>
#include <QtCore/QStringList>
#include <QtCore/QWeakPointer>
#include <QtGui/QItemSelectionRange>
#include "kmodelindexproxymapper.h"
#include "kbihash_p.h"
#include "kvoidpointerfactory_p.h"
#include "kdebug.h"
#include "moc_kselectionproxymodel.cpp"
Go to the source code of this file.
|
| #define | KDO(object) |
| #define | SON(object) |
◆ KDO
◆ SON
◆ ParentMapping
◆ SourceIndexProxyRowMapping
◆ SourceProxyIndexMapping
◆ _getRootListRow()
| int _getRootListRow |
( |
const QList< QModelIndexList > & | rootAncestors, |
|
|
const QModelIndex & | index ) |
|
static |
◆ getRootListRow()
template<typename ModelIndex>
| int getRootListRow |
( |
const QList< ModelIndex > & | list, |
|
|
const QModelIndex & | index ) |
|
static |
◆ getRootRanges()
| QItemSelection getRootRanges |
( |
const QItemSelection & | _selection | ) |
|
|
static |
Returns a selection in which no descendants of selected indexes are also themselves selected.
For example,
If A, B and D are selected in selection, the returned selection contains only A and D.
Definition at line 281 of file kselectionproxymodel.cpp.
◆ indexIsValid()
| bool indexIsValid |
( |
bool | startWithChildTrees, |
|
|
int | row, |
|
|
const QList< QPersistentModelIndex > & | rootIndexList, |
|
|
const SourceIndexProxyRowMapping & | mappedFirstChildren ) |
|
static |
◆ isDescendantOf() [1/4]
| bool isDescendantOf |
( |
const QItemSelection & | selection, |
|
|
const QModelIndex & | descendant ) |
|
static |
◆ isDescendantOf() [2/4]
| bool isDescendantOf |
( |
const QItemSelectionRange & | range, |
|
|
const QModelIndex & | descendant ) |
|
static |
◆ isDescendantOf() [3/4]
template<typename ModelIndex>
| bool isDescendantOf |
( |
const QList< ModelIndex > & | list, |
|
|
const QModelIndex & | idx ) |
Return true if idx is a descendant of one of the indexes in list.
Note that this returns false if list contains idx.
Definition at line 45 of file kselectionproxymodel.cpp.
◆ isDescendantOf() [4/4]
| bool isDescendantOf |
( |
const QModelIndex & | ancestor, |
|
|
const QModelIndex & | descendant ) |
|
static |
◆ kNormalizeSelection()
| QItemSelection kNormalizeSelection |
( |
QItemSelection | selection | ) |
|
◆ stableNormalizeSelection()
| QItemSelection stableNormalizeSelection |
( |
const QItemSelection & | selection | ) |
|
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2026 The KDE developers.
Generated on
by
doxygen 1.16.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.