akonadi
Akonadi::FlatCollectionProxyModel Class Reference
#include <flatcollectionproxymodel.h>
Inherits QAbstractProxyModel.
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.h.
Public Member Functions | |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
FlatCollectionProxyModel (QObject *parent=0) | |
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) |
~FlatCollectionProxyModel () |
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 | ( | ) |
The documentation for this class was generated from the following files: