QAdvanced Item View  0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
Public Member Functions | Protected Member Functions | List of all members
QFilterModel Class Reference

The QFilterModel class provides a default implementation of a filter model. More...

#include <qfiltermodel.h>

Inheritance diagram for QFilterModel:

Public Member Functions

 QFilterModel (QObject *parent)
 ~QFilterModel ()
- Public Member Functions inherited from QAbstractFilterModel
 QAbstractFilterModel (QObject *parent=0)
 ~QAbstractFilterModel ()
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
QFilterGroupfilterGroup (const QModelIndex &index) const
QFilterGroupgroupAt (int row) const
QAbstractFilterfilter (const QModelIndex &index) const
QIcon filterDisabledIcon () const
QIcon filterEnabledIcon () const
QList< QAbstractFilter * > filtersAtRow (int row) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
QAdvancedItemViews::FilterMatchMode matchMode () const
QAdvancedItemViews::FilterProxyMode mode () const
QModelIndex parent (const QModelIndex &index) const
QList< FilterTypeEntryregisteredFilterTypes () const
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
int rowCount (const QModelIndex &parent=QModelIndex()) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void setDefaultFilterType (int column, int type)
void setFilterDisabledIcon (const QIcon &icon)
void setFilterEnabledIcon (const QIcon &icon)
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
void setMatchMode (QAdvancedItemViews::FilterMatchMode flag)
void setMode (QAdvancedItemViews::FilterProxyMode mode)
void setSourceModel (QAbstractItemModel *model)
QAbstractItemModel * sourceModel () const

Protected Member Functions

QAbstractFiltercreateFilter (const QModelIndex &index, const QVariantMap &properties) const
- Protected Member Functions inherited from QAbstractFilterModel
bool registerFilter (int type, const QString &text, const QString &toolTip=QString())
bool registerFilter (int type, const QIcon &icon, const QString &text, const QString &toolTip=QString())

Additional Inherited Members

- Public Types inherited from QAbstractFilterModel
enum  ItemDataRole { ValueFilterTypeRole = Qt::UserRole + 42, DefaultFilterTypeRole, ColumnFilterTypesRole }
- Signals inherited from QAbstractFilterModel
void matchModeChanged (QAdvancedItemViews::FilterMatchMode mode)
void modeChanged (QAdvancedItemViews::FilterProxyMode mode)

Detailed Description

The QFilterModel class provides a default implementation of a filter model.

The following filters are provided by QDefaultFilterModel:

Constructor & Destructor Documentation

QFilterModel::QFilterModel ( QObject *  parent)

Constructs a default filter model with the given parent.

QFilterModel::~QFilterModel ( )

Destroys the default filter model.

Member Function Documentation

QAbstractFilter * QFilterModel::createFilter ( const QModelIndex &  index,
const QVariantMap &  properties 
) const


Implements QAbstractFilterModel.

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