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 | List of all members
QFilterGroup Class Reference

The QFilterGroup class groups filter definitions. More...

#include <qfiltergroup.h>

Public Member Functions

 QFilterGroup ()
 QFilterGroup (const QString &name)
 ~QFilterGroup ()
void add (QAbstractFilter *filter)
int count () const
QAbstractFilterfilter (int index) const
QAbstractFilterfilterAtColumn (int column) const
QList< QAbstractFilter * > filters () const
bool hasFilter (int index) const
QString name () const
bool remove (int column)
void setName (const QString &name)

Detailed Description

The QFilterGroup class groups filter definitions.

Constructor & Destructor Documentation

QFilterGroup::QFilterGroup ( )

Constructs an invalid QFilterGroup.

QFilterGroup::QFilterGroup ( const QString &  name)

Constructs a QFilterGroup with the given name.

QFilterGroup::~QFilterGroup ( )

Destroys the QFilterGroup.

Member Function Documentation

void QFilterGroup::add ( QAbstractFilter filter)

Adds the given filter to this group. The group takes the ownership of the filter.

int QFilterGroup::count ( ) const

Returns the number of filter defined in this group.

QAbstractFilter * QFilterGroup::filter ( int  index) const

Returns the filter at the given index. If index is out of range, an invalid QFilterTableViewColumnFilter is returned.

See also
QAbstractFilter * QFilterGroup::filterAtColumn ( int  column) const

Returns the filter for the specified column. If no filter is defined for the specified column, an invalid filter is returned.

See also
QList< QAbstractFilter * > QFilterGroup::filters ( ) const

Returns a list of filter included in this gorup.

bool QFilterGroup::hasFilter ( int  index) const

Returns true if the column specified by the given index has a filter. Returns false if the column index does not exist or no filter is defined.

QString QFilterGroup::name ( ) const

Returns the filter group's name.

See also
bool QFilterGroup::remove ( int  column)

Removes the filter for the speicified column.

void QFilterGroup::setName ( const QString &  name)

Sets the filter group's name.

See also

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