Detailed Description
The QGalleryUnionFilter class provides a filter which matches the union of two or more meta-data filters.
A union filter represents the union of a list of gallery filters. Filters can be added to an union using either the append(), prepend(), or insert() functions, or using the << operator.
Union filters can also combining two gallery filters with the && operator.
Member Function Documentation
QGalleryUnionFilter::QGalleryUnionFilter ()
Constructs an empty union.
QGalleryUnionFilter::QGalleryUnionFilter ( const QGalleryMetaDataFilter & filter )
Constructs a union filter from a meta data filter.
QGalleryUnionFilter::QGalleryUnionFilter ( const QGalleryIntersectionFilter & filter )
Constructs a union filter from an intersection filter.
QGalleryUnionFilter::QGalleryUnionFilter ( const QGalleryUnionFilter & filter )
Constructs a copy of a union filter.
QGalleryUnionFilter::~QGalleryUnionFilter ()
Destroys a union filter.
void QGalleryUnionFilter::append ( const QGalleryMetaDataFilter & filter )
Appends a meta-data filter to a union.
Appends an intersection filter to a union.
void QGalleryUnionFilter::append ( const QGalleryUnionFilter & filter )
Appends the contents of a union filter to a union.
void QGalleryUnionFilter::clear ()
Clears all the filters from a union.
int QGalleryUnionFilter::filterCount () const
Returns the number of filters in a union.
QList<QGalleryFilter> QGalleryUnionFilter::filters () const
Returns the filters contained in a union.
void QGalleryUnionFilter::insert ( int index, const QGalleryMetaDataFilter & filter )
Inserts a meta-data filter into a union at index.
void QGalleryUnionFilter::insert ( int index, const QGalleryIntersectionFilter & filter )
Inserts an intersection filter into a union at index.
void QGalleryUnionFilter::insert ( int index, const QGalleryUnionFilter & filter )
Inserts the contents of a union filter into a union at index.
bool QGalleryUnionFilter::isEmpty () const
Returns true if a union contains no filters, and false otherwise.
bool QGalleryUnionFilter::isValid () const
Returns true if the filter is a valid union filter.
An invalid filter can be obtained by casting a non QGalleryFilter::Union type QGalleryFilter to QGalleryUnionFilter.
void QGalleryUnionFilter::prepend ( const QGalleryMetaDataFilter & filter )
Prepends a meta-data filter to a union.
void QGalleryUnionFilter::prepend ( const QGalleryIntersectionFilter & filter )
Prepends an intersection filter to a union.
void QGalleryUnionFilter::prepend ( const QGalleryUnionFilter & filter )
Prepends the contents of a union filter to a union.
void QGalleryUnionFilter::remove ( int index )
Removes the filter at index from a union.
void QGalleryUnionFilter::replace ( int index, const QGalleryMetaDataFilter & filter )
Replaces the filter at index in a union with a meta-data filter.
void QGalleryUnionFilter::replace ( int index, const QGalleryIntersectionFilter & filter )
Replaces the filter at index in a union with an intersetion filter.
QGalleryUnionFilter & QGalleryUnionFilter::operator<< ( const QGalleryUnionFilter & filter )
Appends a filter to a union.
QGalleryUnionFilter & QGalleryUnionFilter::operator= ( const QGalleryUnionFilter & filter )
Assigns the value of filter to another union filter.