| Home · All Classes · Grouped Classes · Annotated · Functions |
#include <QContentSetModel>
Inherits QAbstractListModel.
QAbstractItemModel subclass
The QContentSetModel provides a model to represent the data in a QContentSet.
Construct a new model based on the QContentSet cls with parent parent.
Destroys a 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.
Return 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().
Return 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 permssion 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().
| Copyright © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |