Qt Mobility Reference Documentation

QGalleryProperty Class Reference

The QGalleryProperty class provides an identifier for a gallery property. More...

 #include <QGalleryProperty>

Public Types

enum Attribute { CanRead, CanWrite, CanSort, CanFilter }
flags Attributes

Public Functions

QGalleryProperty ( const char * name )
QString ascending () const
QString descending () const
QString name () const
operator QString () const
QGalleryMetaDataFilter operator< ( const QVariant & value ) const
QGalleryMetaDataFilter operator<= ( const QVariant & value ) const
QGalleryMetaDataFilter operator== ( const QVariant & value ) const
QGalleryMetaDataFilter operator> ( const QVariant & value ) const
QGalleryMetaDataFilter operator>= ( const QVariant & value ) const

Detailed Description

The QGalleryProperty class provides an identifier for a gallery property.


Member Type Documentation

enum QGalleryProperty::Attribute
flags QGalleryProperty::Attributes

This enumeration describes the attributes of a property.

ConstantValueDescription
QGalleryProperty::CanRead0x01The value of this property can be read.
QGalleryProperty::CanWrite0x02The value of this property can be written.
QGalleryProperty::CanSort0x04The value of this property can be used to sort items.
QGalleryProperty::CanFilter0x08The value of this property can be used in a filter.

The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.


Member Function Documentation

QGalleryProperty::QGalleryProperty ( const char * name )

Constructs a property from a string literal name.

QString QGalleryProperty::ascending () const

Returns a sort key which indicating items should be sorted a property in ascending order.

QString QGalleryProperty::descending () const

Returns a sort key which indicating items should be sorted a property in descending order.

QString QGalleryProperty::name () const

Returns the name of a property.

QGalleryProperty::operator QString () const

Returns the name of a property.

QGalleryMetaDataFilter QGalleryProperty::operator< ( const QVariant & value ) const

Returns a gallery filter which tests if a property is less than a value.

QGalleryMetaDataFilter QGalleryProperty::operator<= ( const QVariant & value ) const

Returns a gallery filter which tests if a property is less than or equal to a value.

QGalleryMetaDataFilter QGalleryProperty::operator== ( const QVariant & value ) const

Returns a gallery filter which tests if a property is equal to a value.

QGalleryMetaDataFilter QGalleryProperty::operator> ( const QVariant & value ) const

Returns a gallery filter which tests if a property is greater than a value.

QGalleryMetaDataFilter QGalleryProperty::operator>= ( const QVariant & value ) const

Returns a gallery filter which tests if a property is greater than or equal to a value.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.