Functions related to the QModelIndex class.
More...
Functions related to the QModelIndex class.
◆ dos_qmodelindex_assign()
Calls the QModelIndex::operator=(const QModelIndex&) function.
- Parameters
-
l | The left side QModelIndex |
r | The right side QModelIndex |
◆ dos_qmodelindex_child()
Calls the QModelIndex::child() function.
- Parameters
-
vptr | The QModelIndex |
row | The child row |
column | The child column |
- Returns
- The model child QModelIndex at the given
row
and column
- Note
- The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function
◆ dos_qmodelindex_column()
Calls the QModelIndex::column() function.
- Parameters
-
- Returns
- The QModelIndex column
◆ dos_qmodelindex_create()
Create a new QModelIndex()
- Note
- The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function
◆ dos_qmodelindex_create_qmodelindex()
Create a new QModelIndex() copy constructed with given index.
- Note
- The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function
◆ dos_qmodelindex_data()
Calls the QModelIndex::data() function.
- Parameters
-
vptr | The QModelIndex |
role | The model role to which we want the data |
- Returns
- The QVariant associated at the given role
- Note
- The returned QVariant should be freed by calling the dos_qvariant_delete() function
◆ dos_qmodelindex_delete()
Free the memory allocated for the QModelIndex.
- Parameters
-
◆ dos_qmodelindex_internalPointer()
DOS_API void* dos_qmodelindex_internalPointer |
( |
DosQModelIndex * |
vptr | ) |
|
Calls the QModelIndex::internalPointer function.
- Parameters
-
- Returns
- The internal pointer
◆ dos_qmodelindex_isValid()
Calls the QModelIndex::isvalid() function.
- Parameters
-
- Returns
- True if the QModelIndex is valid, false otherwise
◆ dos_qmodelindex_parent()
Calls the QModelIndex::parent() function.
- Parameters
-
- Returns
- The model parent QModelIndex
- Note
- The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function
◆ dos_qmodelindex_row()
Calls the QModelIndex::row() function.
- Parameters
-
- Returns
- The QModelIndex row
◆ dos_qmodelindex_sibling()
Calls the QModelIndex::sibling() function.
- Parameters
-
vptr | The QModelIndex |
row | The sibling row |
column | The sibling column |
- Returns
- The model sibling QModelIndex at the given
row
and column
- Note
- The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function