• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.12
  • kdelibs
  • kdeui
  • itemviews
Macros | Typedefs | Functions
kselectionproxymodel.cpp File Reference
#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"
Include dependency graph for 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 int _getRootListRow ( const QList< QModelIndexList > &  rootAncestors,
const QModelIndex &  index 
)
static

Definition at line 116 of file kselectionproxymodel.cpp.

template<typename ModelIndex >
static int getRootListRow ( const QList< ModelIndex > &  list,
const QModelIndex &  index 
)
static

Determines the correct location to insert index into list.

Definition at line 224 of file kselectionproxymodel.cpp.

static QItemSelection getRootRanges ( const QItemSelection &  _selection)
static

Returns a selection in which no descendants of selected indexes are also themselves selected.

For example,

A
- B
C
D

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 bool indexIsValid ( bool  startWithChildTrees,
int  row,
const QList< QPersistentModelIndex > &  rootIndexList,
const SourceIndexProxyRowMapping &  mappedFirstChildren 
)
static

Definition at line 1274 of file kselectionproxymodel.cpp.

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.

static bool isDescendantOf ( const QModelIndex &  ancestor,
const QModelIndex &  descendant 
)
static

Definition at line 62 of file kselectionproxymodel.cpp.

static bool isDescendantOf ( const QItemSelection &  selection,
const QModelIndex &  descendant 
)
static

Definition at line 80 of file kselectionproxymodel.cpp.

static bool isDescendantOf ( const QItemSelectionRange &  range,
const QModelIndex &  descendant 
)
static

Definition at line 98 of file kselectionproxymodel.cpp.

QItemSelection kNormalizeSelection ( QItemSelection  selection)

Definition at line 373 of file kselectionproxymodel.cpp.

static QItemSelection stableNormalizeSelection ( const QItemSelection &  selection)
static

Definition at line 337 of file kselectionproxymodel.cpp.

This file is part of the KDE documentation.
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.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal