QGalleryMetaDataFilter Class Reference
The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value. More...
#include <QGalleryMetaDataFilter>
Public Functions
Detailed Description
The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value.
Member Function Documentation
QGalleryMetaDataFilter::QGalleryMetaDataFilter ()
Constructs an empty meta-data filter.
QGalleryMetaDataFilter::QGalleryMetaDataFilter ( const QString & property, const QVariant & value, QGalleryFilter::Comparator comparison = QGalleryFilter::Equals, Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive )
Constructs a meta-data filter which tests if a meta-data property matches a value according to a comparison operator.
The caseSensitivity determines whether or not a case-sensitive comparison is made.
QGalleryMetaDataFilter::QGalleryMetaDataFilter ( const QGalleryMetaDataFilter & filter )
Constructs a copy of a meta-data filter.
QGalleryMetaDataFilter::~QGalleryMetaDataFilter ()
Destroys a meta-data filter.
Qt::CaseSensitivity QGalleryMetaDataFilter::caseSensitivity () const
Returns whether a filter performs case-sensitive comparisons.
See also setCaseSensitivity().
Returns the comparator used by a meta-data filter.
See also setComparator().
bool QGalleryMetaDataFilter::isInverted () const
Returns whether the result of a meta-data filter should be inverted.
bool QGalleryMetaDataFilter::isValid () const
Returns true if the filter is a valid meta-data filter.
An invalid filter can be obtained by casting a non QGalleryFilter::MetaData type QGalleryFilter to QGalleryMetaDataFilter.
QString QGalleryMetaDataFilter::propertyName () const
Returns the name of the property the value of a meta-data filter is compared against.
See also setPropertyName().
void QGalleryMetaDataFilter::setCaseSensitivity ( Qt::CaseSensitivity sensitivity )
Sets the case-sensitivity of a meta-data filter.
See also caseSensitivity().
void QGalleryMetaDataFilter::setComparator ( QGalleryFilter::Comparator comparator )
Sets the comparator used by a meta-data filter.
See also comparator().
void QGalleryMetaDataFilter::setInverted ( bool inverted )
Sets whether the result of a meta-data filter should be inverted.
See also isInverted().
void QGalleryMetaDataFilter::setPropertyName ( const QString & name )
Sets the name of the property the value of meta-data filter is compared against.
See also propertyName().
void QGalleryMetaDataFilter::setValue ( const QVariant & value )
Sets the value a property is expected to match for a meta-data filter to pass.
See also value().
QVariant QGalleryMetaDataFilter::value () const
Returns the value a property is expected to match for a meta-data filter to pass.
See also setValue().
QGalleryMetaDataFilter QGalleryMetaDataFilter::operator! () const
Returns a meta-data filter which tests the inverse of an existing filter.
QGalleryMetaDataFilter & QGalleryMetaDataFilter::operator= ( const QGalleryMetaDataFilter & filter )
Assigns the value of filter to another meta-data filter.