class ObjectDescriptionModelData |
|
Internal
\class ObjectDescriptionModelData objectdescriptionmodel.h Phonon/ObjectDescriptionModelData
Data class for models for ObjectDescription objects.
Author Matthias Kretz |
|
|
|
Returns data from the item with the given index for the specified
role.
If the view requests an invalid index, an invalid variant is
returned.
Reimplemented from QAbstractItemModel. See also QAbstractItemModel.data See also Qt.ItemDataRole |
|
|
Reimplemented to show unavailable devices as disabled (but still selectable). |
|
Returns the MIME data that dropMimeData() can use to create new items. |
|
|
|
|
Moves the item at the given index down. In the resulting list
the items at index.row() and index.row() + 1 are swapped.
Connected views are updated automatically. |
|
Moves the item at the given index up. In the resulting list
the items at index.row() and index.row() - 1 are swapped.
Connected views are updated automatically. |
|
|
Returns the number of rows in the model. This value corresponds
to the size of the list passed through setModelData.
parent - The optional parent argument is used in most models to specify the parent of the rows to be counted. Because this is a list if a valid parent is specified the result will always be 0. Reimplemented from QAbstractItemModel. See also QAbstractItemModel.rowCount |
|
|
|
Returns the ObjectDescription.index for the tuple
at the given position positionIndex. For example a
QComboBox will give you the currentIndex as the
position in the list. But to select the according
AudioOutputDevice using AudioOutputDevice.fromIndex
you can use this method.
positionIndex - The position in the list. |
|
Returns a list of indexes in the same order as they are in the
model. The indexes come from the ObjectDescription.index
method.
This is useful to let the user define a list of preference. |