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.
Macros | |
#define | KDO(object) kDebug() << #object << object |
#define | SON(object) object->setObjectName(#object) |
Typedefs | |
typedef KBiHash< void *, QModelIndex > | ParentMapping |
typedef KHash2Map < QPersistentModelIndex, int > | SourceIndexProxyRowMapping |
typedef KBiHash < QPersistentModelIndex, QModelIndex > | SourceProxyIndexMapping |
Functions | |
static int | _getRootListRow (const QList< QModelIndexList > &rootAncestors, const QModelIndex &index) |
template<typename ModelIndex > | |
static int | getRootListRow (const QList< ModelIndex > &list, const QModelIndex &index) |
static QItemSelection | getRootRanges (const QItemSelection &_selection) |
static bool | indexIsValid (bool startWithChildTrees, int row, const QList< QPersistentModelIndex > &rootIndexList, const SourceIndexProxyRowMapping &mappedFirstChildren) |
template<typename ModelIndex > | |
bool | isDescendantOf (const QList< ModelIndex > &list, const QModelIndex &idx) |
static bool | isDescendantOf (const QModelIndex &ancestor, const QModelIndex &descendant) |
static bool | isDescendantOf (const QItemSelection &selection, const QModelIndex &descendant) |
static bool | isDescendantOf (const QItemSelectionRange &range, const QModelIndex &descendant) |
QItemSelection | kNormalizeSelection (QItemSelection selection) |
static QItemSelection | stableNormalizeSelection (const QItemSelection &selection) |
Macro Definition Documentation
#define KDO | ( | object | ) | kDebug() << #object << object |
Definition at line 37 of file kselectionproxymodel.cpp.
#define SON | ( | object | ) | object->setObjectName(#object) |
Definition at line 38 of file kselectionproxymodel.cpp.
Typedef Documentation
typedef KBiHash<void*, QModelIndex> ParentMapping |
Definition at line 34 of file kselectionproxymodel.cpp.
typedef KHash2Map<QPersistentModelIndex, int> SourceIndexProxyRowMapping |
Definition at line 35 of file kselectionproxymodel.cpp.
typedef KBiHash<QPersistentModelIndex, QModelIndex> SourceProxyIndexMapping |
Definition at line 33 of file kselectionproxymodel.cpp.
Function Documentation
|
static |
Definition at line 116 of file kselectionproxymodel.cpp.
|
static |
Determines the correct location to insert index
into list
.
Definition at line 224 of file kselectionproxymodel.cpp.
|
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.
|
static |
Definition at line 1274 of file kselectionproxymodel.cpp.
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.
|
static |
Definition at line 62 of file kselectionproxymodel.cpp.
|
static |
Definition at line 80 of file kselectionproxymodel.cpp.
|
static |
Definition at line 98 of file kselectionproxymodel.cpp.
QItemSelection kNormalizeSelection | ( | QItemSelection | selection | ) |
Definition at line 373 of file kselectionproxymodel.cpp.
|
static |
Definition at line 337 of file kselectionproxymodel.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:16 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.