Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

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

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

Public Functions

  • Template ( QContentFilter::FilterType type, const QString & scope = QString(), TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )
  • Template ( QContent::Property property, TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )
  • Template ( const Template & target, QContentFilter::FilterType type, const QString & scope = QString(), TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )
  • Template ( const Template & target, QContent::Property property, TemplateOptions options = NoTemplateOptions, const QStringList & checked = QStringList() )
  • Template ( const Template & other )
  • void addLabel ( const QString & title, bool checked = false )
  • void addLabel ( const Template & target, const QString & title, bool checked = false )
  • void addLabel ( const QString & title, const QContentFilter & filter, bool checked = false )
  • void addLabel ( const Template & target, const QString & title, const QContentFilter & filter, bool checked = false )
  • void addList ( QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )
  • void addList ( const Template & target, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )
  • void addList ( const QContentFilter & filter, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )
  • void addList ( const Template & target, const QContentFilter & filter, QContentFilter::FilterType type, const QString & scope = QString(), const QStringList & checked = QStringList() )
  • void addList ( QContent::Property property, const QStringList & checked = QStringList() )
  • void addList ( const Template & target, QContent::Property property, const QStringList & checked = QStringList() )
  • void addList ( const QContentFilter & filter, QContent::Property property, const QStringList & checked = QStringList() )
  • void addList ( const Template & target, const QContentFilter & filter, QContent::Property property, const QStringList & checked = QStringList() )
  • QContentFilter filter () const
  • bool isValid () const
  • TemplateOptions options () const
  • void setFilter ( const QContentFilter & filter )
  • void setOptions ( TemplateOptions options )
  • Template & operator= ( const Template & other )

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.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 35
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  5. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 49
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 22
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le Qt Labs au hasard

Logo

Améliorer les performances de Qt avec les chaînes de caractères avec SIMD... ou pas

Les Qt Labs sont les laboratoires des développeurs de Qt, où ils peuvent partager des impressions sur le framework, son utilisation, ce que pourrait être son futur. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 !
 
 
 
 
Partenaires

Hébergement Web