QCategoryFilter Class Reference
|
Constant | Value | Description |
---|---|---|
QCategoryFilter::List | 0 | Only accepts category sets that contain all of the required categories. |
QCategoryFilter::Unfiled | 1 | Only accepts empty category sets. |
QCategoryFilter::All | 2 | Accepts all category sets. |
Constructs a QCategoryFilter object. By default this object will accept all category sets.
Constructs a QCategoryFilter object of type t.
See also FilterType.
Constructs a QCategoryFilter object that only accepts category sets containing all of the category ids listed in set. The type is set to QCategoryFilter::List.
Constructs a QCategoryFilter object that only accepts category sets containing category id c. The type is set to QCategoryFilter::List.
Constructs a QCategoryFilter object as a copy of other.
Destroys a QCategoryFilter object.
Returns true if the QCategoryFilterObject accepts all category sets. Otherwise returns false.
See also QCategoryFilter::requiredCategories().
Returns true if the QCategoryFilterObject only accepts empty category sets. Otherwise returns false.
Returns true if the set of categories described by list is accepted by the QCategoryFilter object. Otherwise returns false.
Returns a translated string that briefly describes the QCategoryFilter object. If specified, scope specifies the scope in which to search for the label.
This is useful when displaying a string describing the categories the QCategoryFilter allows.
currentCategoryLabel->setText( catetoryFilter->label() );
Reads the QCategoryFilter from field key in c.
QSettings settings("mycompany", "myapp"); QCategoryFilter filter; filter.readConfig(settings,"filter");
See also writeConfig().
Returns the list of categories that must be in a set for the set to be accepted. Note that this only returns a list of the QCategoryFilter object is of type QCategoryFilter::List. To get the list of categories corresponding to QCategoryFilter::All you must create a QCategoryManager.
QStringList categories;
if ( filter.acceptAll() )
categories = QCategoryManager(scope).categoryIds();
else
categories = filter.requiredCategories(); // returns empty list for Unfiled
Writes the QCategoryFilter to field key in c.
QCategoryFilter filter("mycategory"); QSettings settings("mycompany", "myapp"); filter.writeConfig(settings,"filter");
See also readConfig().
Returns true if the QCategoryFilter object is not equivilent to other. Otherwise returns false.
Assigns the QCategoryFilter object to be a copy of other.
Returns true if the QCategoryFilter object is equivilent to other. Otherwise returns false.
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