QContentSetModel Class Reference
|
Constant | Value | Description |
---|---|---|
QContentSetModel::FilenameRole | Qt::UserRole | The filename of the data item to be displayed. |
QContentSetModel::ContentRole | Qt::UserRole + 1 | The QContent object of the data item to be displayed. |
QContentSetModel::ThumbnailRole | Qt::UserRole + 2 | The thumbnail if available of the data item to be displayed. |
See also Qt::ItemDataRole and Qtopia::ItemDataRole.
Constructs a new model based on the QContentSet cls with parent parent.
Destroys the QContentSetModel object.
Returns the QContent for the requested row.
This is an overloaded member function, provided for convenience.
Returns the QContent for the requested index.
Returns the QContentId for the requested row. The value returned may be QContent::InvalidId if the QContent has not been committed to the backing store, or there is no associated QContentSet for the model.
This is an overloaded member function, provided for convenience.
Returns the QContentId for the requested index.
Returns the appropriate QVariant data from the model for the given index. Depending upon the role, the QVariant will contain the name of the QContent object at that index, its icon, or relevant tooltip text. The "ToolTip" text is shown when the user hovers the cursor over the item in the model view. The tooltip text will display the comment() field from the QContent object, or if error() is true, the error text. Additionally the DRM rights in summary form will be shown.
Reimplemented from QAbstractItemModel.
Returns the permissions a QContent must have in order to be selectable in the content model.
See also QDrmRights and setMandatoryPermissions().
Returns the number of rows in the model. Since this is a flat list the parent argument will always be the default null index, indicating a top level item. The result is the count of the items in the backing store which match the filter expression plus any explicitly added non-matching items.
Reimplemented from QAbstractItemModel.
Returns the permission which indicates the intended usage of the content in the model.
See also QDrmRights and setSelectPermission().
Sets the permissions a QContent must have to in order to be selectable in the content model.
If a row in the model doesn't have all the mandatory permissions the Qt::ItemIsEnabled and Qt::ItemIsSelectable flags will be cleared.
See also QDrmRights and mandatoryPermissions().
Sets the permission which indicates the intended usage of the content in the model. Content in the model which doesn't have the selected permission will be displayed with an invalid rights icon.
If the permission is QDrmRights::InvalidPermission the default permission for the content is used.
See also QDrmRights and selectPermission().
Signals that an update of the contents of the set has started.
This only applies to asynchronous content sets.
See also updateInProgress() and updateStarted().
Returns true if the content of the set are being updated.
This only applies to asynchronous content sets.
See also updateStarted() and updateFinished().
Signals that an update of the contents of the set has started.
This only applies to asynchronous content sets.
See also updateInProgress() and updateFinished().
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