Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

Template Class Reference
(QContentFilterModel::Template)
[QtBaseModule]

The Template class enables the construction of complex QContentFilterModels with fixed entries and multiple lists. More...

Public Functions


Detailed Description

The Template class enables the construction of complex QContentFilterModels with fixed entries and multiple lists.

A basic content filter model consists of just a flat list of content filters of a common type. A content filter model template adds options to extend these lists to include fixed labels, and multiple lists based on different criteria.

Templates also allows list items to link to child templates to create hierachial filter models where the contents of each child list is filtered by the parent filter item.

See also QContentFilterModel.


Member Function Documentation

Template::Template ()

Constructs a new empty Template.

Template::Template ( QContentFilter::FilterType type, const QString & scope = QString(), TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )

Constructs a new Template for a list of filters with the FilterType type and specialization scope.

By default no template options will be set.

Any filters with an argument that matches one in the checked list will be checked by default.

Template::Template ( QContent::Property property, TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )

Constructs a new Template for a list of filters for selecting from the property property.

By default no template options will be set.

The properties listed in the checked list will be checked by default.

Template::Template ( const Template & target, QContentFilter::FilterType type, const QString & scope = QString(), TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )

Constructs a new Template for a list of filters with the FilterType type and specialization scope.

Each filter in the list will parent a sub list defined by the Template target.

By default no template options will be set.

Any filters with an argument that matches one in the checked list will be checked by default.

Template::Template ( const Template & target, QContent::Property property, TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )

Constructs a new Template for a list of filters for selecting from the property property.

Each filter in the list will parent a sub list defined by the Template target.

By default no template options will be set.

The properties listed in the checked list will be checked by default.

Template::Template ( const Template & other )

Creates a copy of other.

Template::~Template ()

Destroys a Template.

void Template::addLabel ( const QString & title, bool checked = false )

Adds a label with the text title to the template, if checked is true the label will be checked by default.

void Template::addLabel ( const Template & target, const QString & title, bool checked = false )

This is an overloaded member function, provided for convenience.

Adds a label with the text title to the template, if checked is true the label will be checked by default.

The label will parent a sub list defined by the Template target.

void Template::addLabel ( const QString & title, const QContentFilter & filter, bool checked = false )

This is an overloaded member function, provided for convenience.

Adds a label with the text title which selects the QContentFilter filter to the template, if checked is true the label will be checked by default.

void Template::addLabel ( const Template & target, const QString & title, const QContentFilter & filter, bool checked = false )

This is an overloaded member function, provided for convenience.

Adds a label with the text title which selects the QContentFilter filter to the template, if checked is true the label will be checked by default.

The label will parent a sub list defined by the Template target.

void Template::addList ( QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )

Adds a list of filters of type type within the given scope to the template.

Any filters with an argument that matches one in the checked list will be checked by default.

void Template::addList ( const Template & target, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters of type type within the given scope to the template.

Each filter in the list will parent a sub list defined by the Template target.

Any filters with an argument that matches one in the checked list will be checked by default.

void Template::addList ( const QContentFilter & filter, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters of type type within the given scope and filtered by filter to the template.

Any filters with an argument that matches one in the checked list will be checked by default.

void Template::addList ( const Template & target, const QContentFilter & filter, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters of type type within the given scope and filtered by filter to the template.

Each filter in the list will parent a sub list defined by the Template target.

Any filters with an argument that matches one in the checked list will be checked by default.

void Template::addList ( QContent::Property property, const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters based on the property property to the template.

The properties listed in the checked list will be checked by default.

void Template::addList ( const Template & target, QContent::Property property, const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters based on the property property to the template.

Each filter in the list will parent a sub list defined by the Template target.

The properties listed in the checked list will be checked by default.

void Template::addList ( const QContentFilter & filter, QContent::Property property, const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters filtered by filter and based on the property property to the template.

The properties listed in the checked list will be checked by default.

void Template::addList ( const Template & target, const QContentFilter & filter, QContent::Property property, const QStringList & checked = QStringList() )

This is an overloaded member function, provided for convenience.

Adds a list of filters filtered by filter and based on the property property to the template.

Each filter in the list will parent a sub list defined by the Template target.

The properties listed in the checked list will be checked by default.

QContentFilter Template::filter () const

Returns the filter applied to all items in the template.

See also setFilter().

bool Template::isValid () const

Returns true if the template is valid.

TemplateOptions Template::options () const

Returns the template options.

See also setOptions().

void Template::setFilter ( const QContentFilter & filter )

Sets the filter applied to all items in the template.

See also filter().

void Template::setOptions ( TemplateOptions options )

Sets the template options.

See also options().

Template & Template::operator= ( const Template & other )

Assigns other a Template.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3