Akonadi::FlatCollectionProxyModel Class Reference

#include <flatcollectionproxymodel_p.h>

Inherits QAbstractProxyModel.

List of all members.

Public Member Functions

 FlatCollectionProxyModel (QObject *parent=0)
 ~FlatCollectionProxyModel ()
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
QModelIndex mapToSource (const QModelIndex &proxyIndex) const
QModelIndex parent (const QModelIndex &index) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
void setSourceModel (QAbstractItemModel *sourceModel)

Detailed Description

For internal use only.

Converts the hierarchical collection model into a flat one.

Todo:
Make this fast. And maybe even generic.

Definition at line 34 of file flatcollectionproxymodel_p.h.


Constructor & Destructor Documentation

FlatCollectionProxyModel::FlatCollectionProxyModel ( QObject *  parent = 0  ) 

Create a new flat collection proxy model.

Parameters:
parent The parent object.

Definition at line 80 of file flatcollectionproxymodel.cpp.

FlatCollectionProxyModel::~FlatCollectionProxyModel (  ) 

Destructor.

Definition at line 86 of file flatcollectionproxymodel.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys