KDEUI
#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) kDebug() << #object << object |
|
#define | SON(object) object->setObjectName(#object) |
|
◆ KDO
#define KDO |
( |
|
object | ) |
kDebug() << #object << object |
◆ SON
#define SON |
( |
|
object | ) |
object->setObjectName(#object) |
◆ ParentMapping
◆ SourceIndexProxyRowMapping
◆ SourceProxyIndexMapping
◆ _getRootListRow()
static int _getRootListRow |
( |
const QList< QModelIndexList > & |
rootAncestors, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
static |
◆ getRootListRow()
template<typename ModelIndex >
static int getRootListRow |
( |
const QList< ModelIndex > & |
list, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
static |
◆ getRootRanges()
static 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()
static bool indexIsValid |
( |
bool |
startWithChildTrees, |
|
|
int |
row, |
|
|
const QList< QPersistentModelIndex > & |
rootIndexList, |
|
|
const SourceIndexProxyRowMapping & |
mappedFirstChildren |
|
) |
| |
|
static |
◆ isDescendantOf() [1/4]
static bool isDescendantOf |
( |
const QItemSelection & |
selection, |
|
|
const QModelIndex & |
descendant |
|
) |
| |
|
static |
◆ isDescendantOf() [2/4]
static 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]
static bool isDescendantOf |
( |
const QModelIndex & |
ancestor, |
|
|
const QModelIndex & |
descendant |
|
) |
| |
|
static |
◆ kNormalizeSelection()
QItemSelection kNormalizeSelection |
( |
QItemSelection |
selection | ) |
|
◆ stableNormalizeSelection()
static QItemSelection stableNormalizeSelection |
( |
const QItemSelection & |
selection | ) |
|
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.