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.
Constructs a new empty Template.
Constructs a new Template for a list of filters with the FilterType type and specialization scope.
By default no template options will be set.
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.
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.
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.
Adds a list of filters of type type within the given scope to the template.
Adds a list of filters of type type within the given scope and filtered by filter to the template.
Adds a list of filters based on the property property to the template.
Adds a list of filters filtered by filter and based on the property property to the template.
Returns the filter applied to all items in the template.
Returns true if the template is valid.
Sets the filter applied to all items in the template.