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
Signals | Public Member Functions | Protected Member Functions | List of all members
QAbstractFilterProxyModel Class Referenceabstract

The QAbstractFilterProxyModel provides an abstract base class for filter models. More...

#include <qabstractfilterproxymodel.h>

Inheritance diagram for QAbstractFilterProxyModel:


void resultAboutToChange ()
void resultChanged ()
void resultCountChanged (int filteredRows, int unfilteredRows)

Public Member Functions

 QAbstractFilterProxyModel (QObject *parent=0)
 ~QAbstractFilterProxyModel ()
QAbstractFilterModelfilterModel () const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void setFilterModel (QAbstractFilterModel *model)
virtual void setSourceModel (QAbstractItemModel *sourceModel)

Protected Member Functions

void emitResultCountChanged ()
virtual bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const =0

Detailed Description

The QAbstractFilterProxyModel provides an abstract base class for filter models.

Constructor & Destructor Documentation

QAbstractFilterProxyModel::QAbstractFilterProxyModel ( QObject *  parent = 0)

Constructs a QAbstractFilterProxyModel with the given parent.

QAbstractFilterProxyModel::~QAbstractFilterProxyModel ( )

Destroys the filter proxy model.

Member Function Documentation

QAbstractFilterModel * QAbstractFilterProxyModel::filterModel ( ) const

Returns the filter model accosiated with proxy model.

See also
void QAbstractFilterProxyModel::resultAboutToChange ( )

This signal is emitted before the filter current filtering is invalidated.

See also
void QAbstractFilterProxyModel::resultChanged ( )

This signal is emitted after the filtering has been completed.

See also
resultChanged(), resultCountChanged()
void QAbstractFilterProxyModel::resultCountChanged ( int  filteredRows,
int  unfilteredRows 

This signal is emitted whenever the number of rows in the filtered result set has changed.

void QAbstractFilterProxyModel::setFilterModel ( QAbstractFilterModel model)

Sets the filter model providing the filter definitions.

See also
void QAbstractFilterProxyModel::setSourceModel ( QAbstractItemModel *  sourceModel)


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