Phonon::ObjectDescriptionModelData
#include <phonon/ObjectDescriptionModelData>
Protected Attributes | |
ObjectDescriptionModelDataPrivate *const | d |
Detailed Description
Data class for models for ObjectDescription objects.
Definition at line 46 of file objectdescriptionmodel.h.
Constructor & Destructor Documentation
◆ ObjectDescriptionModelData()
Definition at line 287 of file objectdescriptionmodel.cpp.
◆ ~ObjectDescriptionModelData()
|
protected |
Definition at line 292 of file objectdescriptionmodel.cpp.
Member Function Documentation
◆ data()
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.
Definition at line 158 of file objectdescriptionmodel.cpp.
◆ dropMimeData()
Definition at line 323 of file objectdescriptionmodel.cpp.
◆ flags()
Reimplemented to show unavailable devices as disabled (but still selectable).
Definition at line 205 of file objectdescriptionmodel.cpp.
◆ mimeData()
Returns the MIME data that dropMimeData() can use to create new items.
Definition at line 232 of file objectdescriptionmodel.cpp.
◆ mimeTypes()
Definition at line 394 of file objectdescriptionmodel.cpp.
◆ modelData() [1/2]
Definition at line 304 of file objectdescriptionmodel.cpp.
◆ modelData() [2/2]
Definition at line 309 of file objectdescriptionmodel.cpp.
◆ moveDown()
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.
Definition at line 268 of file objectdescriptionmodel.cpp.
◆ moveUp()
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.
Definition at line 249 of file objectdescriptionmodel.cpp.
◆ removeRows()
Definition at line 363 of file objectdescriptionmodel.cpp.
◆ rowCount()
Returns the number of rows in the model.
This value corresponds to the size of the list passed through setModelData.
- Parameters
-
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
Definition at line 150 of file objectdescriptionmodel.cpp.
◆ setModelData()
Definition at line 297 of file objectdescriptionmodel.cpp.
◆ supportedDropActions()
Definition at line 317 of file objectdescriptionmodel.cpp.
◆ tupleIndexAtPositionIndex()
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.
- Parameters
-
positionIndex The position in the list.
Definition at line 227 of file objectdescriptionmodel.cpp.
◆ tupleIndexOrder()
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.
Definition at line 218 of file objectdescriptionmodel.cpp.
Member Data Documentation
◆ d
|
protected |
Definition at line 137 of file objectdescriptionmodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:50:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.