QContentFilterModel Class Reference
|
Constant | Value | Description |
---|---|---|
QContentFilterModel::NoTemplateOptions | 0x00 | Don't display any additional list items or check boxes. |
QContentFilterModel::ForceAll | 0x02 | Always display a select all option at the start of a list. |
QContentFilterModel::SelectAll | 0x01 | Display a select all option at the start of a list if there is more than one other item in the list. |
QContentFilterModel::CheckList | 0x04 | The list is a checklist. |
QContentFilterModel::AndCheckedFilters | 0x08 | When determining the selected filter filters are and'ed together. By default filters are or'ed. |
QContentFilterModel::ShowEmptyLabels | 0x10 | Forces labels to be shown irregardless of whether they match any content in the database. |
The TemplateOptions type is a typedef for QFlags<TemplateOption>. It stores an OR combination of TemplateOption values.
Creates a new QContentFilterModel with the given parent.
Creates a new content filter model parented to parent which lists filters for the property property according to the given template options.
The properties listed in the checked list will be checked by default.
Creates a new content filter model parented to parent which lists filters of type type within the given scope according to the template options.
Any filters with an argument that matches one in the checked list will be checked by default.
Destroys a QContentFilterModel.
Returns the base filter of the model. Only filters which return content passed by the base filter will be listed in the view.
See also setBaseFilter().
Returns a filter built from the the checked items that are children of parent.
Returns the QContentFilter at index. The returned filter will be and'ed combination of the filter at the index and it's parents, not including the models base filter.
Returns the template which the model is constructed from.
See also setModelTemplate().
Sets the base filter of the model to filter. Only filters which return content passed by the base filter will be listed in the view.
See also baseFilter().
Sets the template the model is constructed from to modelTemplate.
See also modelTemplate().
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com