The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value. More...
#include <QGalleryMetaDataFilter>
QGalleryMetaDataFilter () | |
QGalleryMetaDataFilter ( const QString & property, const QVariant & value, QGalleryFilter::Comparator comparison = QGalleryFilter::Equals ) | |
QGalleryMetaDataFilter ( const QGalleryMetaDataFilter & filter ) | |
~QGalleryMetaDataFilter () | |
QGalleryFilter::Comparator | comparator () const |
bool | isInverted () const |
bool | isValid () const |
QString | propertyName () const |
void | setComparator ( QGalleryFilter::Comparator comparator ) |
void | setInverted ( bool inverted ) |
void | setPropertyName ( const QString & name ) |
void | setValue ( const QVariant & value ) |
QVariant | value () const |
QGalleryMetaDataFilter | operator! () const |
QGalleryMetaDataFilter & | operator= ( const QGalleryMetaDataFilter & filter ) |
The QGalleryMetaDataFilter class provides a filter which accepts items with meta-data properties matching a specific value.
Constructs an empty meta-data filter.
Constructs a meta-data filter which tests if a meta-data property matches a value according to a comparison operator.
Constructs a copy of a meta-data filter.
Destroys a meta-data filter.
Returns the comparator used by a meta-data filter.
See also setComparator().
Returns whether the result of a meta-data filter should be inverted.
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.
Returns the name of the property the value of a meta-data filter is compared against.
See also setPropertyName().
Sets the comparator used by a meta-data filter.
See also comparator().
Sets whether the result of a meta-data filter should be inverted.
See also isInverted().
Sets the name of the property the value of meta-data filter is compared against.
See also propertyName().
Sets the value a property is expected to match for a meta-data filter to pass.
See also value().
Returns the value a property is expected to match for a meta-data filter to pass.
See also setValue().
Returns a meta-data filter which tests the inverse of an existing filter.
Assigns the value of filter to another meta-data filter.