class ItemModel |
|
A table model for items.
A self-updating table model that shows all items of a collection.
Author Volker Krause |
|
Creates a new item model.
parent - The parent object. |
|
This signal is emitted whenever setCollection is called. |
|
|
|
|
Returns the item fetch scope.
Since this returns a reference it can be used to conveniently modify the current scope in-place, i.e. by calling a method on the returned reference without storing it in a local variable. See the ItemFetchScope documentation for an example. Returns a reference to the current item fetch scope. See also setFetchScope() for replacing the current item fetch scope. |
|
|
|
Returns the model index for the given item, with the given column.
item - The item to find. column - The column for the returned index. |
|
Returns the item at the given index. |
|
|
|
|
Returns the Session object used for all operations by this model. |
|
Sets the collection the model should display. If the collection has
changed, the model is reset and a new message listing is requested
from the Akonadi storage.
collection - The collection. |
|
Sets the item fetch scope.
The ItemFetchScope controls how much of an item's data is fetched from the server, e.g. whether to fetch the full item payload or only meta data. fetchScope - the new scope for item fetch operations See also fetchScope() |
Describes the types of the columns in the model.
Id | - 0 | - | ||
RemoteId | - | - | ||
MimeType | - | - |
Describes the roles of the model.
IdRole | - Qt::UserRole+1 | - | ||
ItemRole | - | - | ||
MimeTypeRole | - | - | ||
UserRole | - Qt::UserRole+42 | - |