LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LeechCraft::Util::FlattenFilterModel Class Reference

#include "flattenfiltermodel.h"

+ Inheritance diagram for LeechCraft::Util::FlattenFilterModel:
+ Collaboration diagram for LeechCraft::Util::FlattenFilterModel:

Public Member Functions

 FlattenFilterModel (QObject *=0)
 
QModelIndex index (int, int, const QModelIndex &=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
void SetSource (QAbstractItemModel *)
 

Protected Member Functions

virtual bool IsIndexAccepted (const QModelIndex &) const
 

Protected Attributes

QAbstractItemModel * Source_
 
QList< QPersistentModelIndex > SourceIndexes_
 

Detailed Description

Definition at line 39 of file flattenfiltermodel.h.

Constructor & Destructor Documentation

LeechCraft::Util::FlattenFilterModel::FlattenFilterModel ( QObject *  parent = 0)

Definition at line 36 of file flattenfiltermodel.cpp.

Member Function Documentation

int LeechCraft::Util::FlattenFilterModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 60 of file flattenfiltermodel.cpp.

QVariant LeechCraft::Util::FlattenFilterModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 65 of file flattenfiltermodel.cpp.

References SourceIndexes_.

QModelIndex LeechCraft::Util::FlattenFilterModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex () 
) const

Definition at line 42 of file flattenfiltermodel.cpp.

bool LeechCraft::Util::FlattenFilterModel::IsIndexAccepted ( const QModelIndex &  ) const
protectedvirtual

Definition at line 105 of file flattenfiltermodel.cpp.

QModelIndex LeechCraft::Util::FlattenFilterModel::parent ( const QModelIndex &  ) const

Definition at line 50 of file flattenfiltermodel.cpp.

int LeechCraft::Util::FlattenFilterModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 55 of file flattenfiltermodel.cpp.

References SourceIndexes_.

void LeechCraft::Util::FlattenFilterModel::SetSource ( QAbstractItemModel *  model)

Definition at line 70 of file flattenfiltermodel.cpp.

References Source_, and SourceIndexes_.

Member Data Documentation

QAbstractItemModel* LeechCraft::Util::FlattenFilterModel::Source_
protected

Definition at line 43 of file flattenfiltermodel.h.

Referenced by SetSource().

QList<QPersistentModelIndex> LeechCraft::Util::FlattenFilterModel::SourceIndexes_
protected

Definition at line 44 of file flattenfiltermodel.h.

Referenced by data(), rowCount(), and SetSource().


The documentation for this class was generated from the following files: