DOtherSide  0.7.1
C language library for creating bindings for the Qt QML language
Functions
QModelIndex

Functions related to the QModelIndex class. More...

Functions

DOS_API DosQModelIndexdos_qmodelindex_create (void)
 Create a new QModelIndex() More...
 
DOS_API DosQModelIndexdos_qmodelindex_create_qmodelindex (DosQModelIndex *index)
 Create a new QModelIndex() copy constructed with given index. More...
 
DOS_API void dos_qmodelindex_delete (DosQModelIndex *vptr)
 Free the memory allocated for the QModelIndex. More...
 
DOS_API int dos_qmodelindex_row (const DosQModelIndex *vptr)
 Calls the QModelIndex::row() function. More...
 
DOS_API int dos_qmodelindex_column (const DosQModelIndex *vptr)
 Calls the QModelIndex::column() function. More...
 
DOS_API bool dos_qmodelindex_isValid (const DosQModelIndex *vptr)
 Calls the QModelIndex::isvalid() function. More...
 
DOS_API DosQVariantdos_qmodelindex_data (const DosQModelIndex *vptr, int role)
 Calls the QModelIndex::data() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_parent (const DosQModelIndex *vptr)
 Calls the QModelIndex::parent() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_child (const DosQModelIndex *vptr, int row, int column)
 Calls the QModelIndex::child() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_sibling (const DosQModelIndex *vptr, int row, int column)
 Calls the QModelIndex::sibling() function. More...
 
DOS_API void dos_qmodelindex_assign (DosQModelIndex *l, const DosQModelIndex *r)
 Calls the QModelIndex::operator=(const QModelIndex&) function. More...
 
DOS_API void * dos_qmodelindex_internalPointer (DosQModelIndex *vptr)
 Calls the QModelIndex::internalPointer function. More...
 

Detailed Description

Functions related to the QModelIndex class.

Function Documentation

◆ dos_qmodelindex_assign()

DOS_API void dos_qmodelindex_assign ( DosQModelIndex l,
const DosQModelIndex r 
)

Calls the QModelIndex::operator=(const QModelIndex&) function.

Parameters
lThe left side QModelIndex
rThe right side QModelIndex

◆ dos_qmodelindex_child()

DOS_API DosQModelIndex* dos_qmodelindex_child ( const DosQModelIndex vptr,
int  row,
int  column 
)

Calls the QModelIndex::child() function.

Parameters
vptrThe QModelIndex
rowThe child row
columnThe 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()

DOS_API int dos_qmodelindex_column ( const DosQModelIndex vptr)

Calls the QModelIndex::column() function.

Parameters
vptrThe QModelIndex
Returns
The QModelIndex column

◆ dos_qmodelindex_create()

DOS_API DosQModelIndex* dos_qmodelindex_create ( void  )

Create a new QModelIndex()

Note
The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function

◆ dos_qmodelindex_create_qmodelindex()

DOS_API DosQModelIndex* dos_qmodelindex_create_qmodelindex ( DosQModelIndex index)

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()

DOS_API DosQVariant* dos_qmodelindex_data ( const DosQModelIndex vptr,
int  role 
)

Calls the QModelIndex::data() function.

Parameters
vptrThe QModelIndex
roleThe 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()

DOS_API void dos_qmodelindex_delete ( DosQModelIndex vptr)

Free the memory allocated for the QModelIndex.

Parameters
vptrThe QModelIndex

◆ dos_qmodelindex_internalPointer()

DOS_API void* dos_qmodelindex_internalPointer ( DosQModelIndex vptr)

Calls the QModelIndex::internalPointer function.

Parameters
vptrThe QModelIndex
Returns
The internal pointer

◆ dos_qmodelindex_isValid()

DOS_API bool dos_qmodelindex_isValid ( const DosQModelIndex vptr)

Calls the QModelIndex::isvalid() function.

Parameters
vptrThe QModelIndex
Returns
True if the QModelIndex is valid, false otherwise

◆ dos_qmodelindex_parent()

DOS_API DosQModelIndex* dos_qmodelindex_parent ( const DosQModelIndex vptr)

Calls the QModelIndex::parent() function.

Parameters
vptrThe QModelIndex
Returns
The model parent QModelIndex
Note
The returned QModelIndex should be freed by calling the dos_qmodelindex_delete() function

◆ dos_qmodelindex_row()

DOS_API int dos_qmodelindex_row ( const DosQModelIndex vptr)

Calls the QModelIndex::row() function.

Parameters
vptrThe QModelIndex
Returns
The QModelIndex row

◆ dos_qmodelindex_sibling()

DOS_API DosQModelIndex* dos_qmodelindex_sibling ( const DosQModelIndex vptr,
int  row,
int  column 
)

Calls the QModelIndex::sibling() function.

Parameters
vptrThe QModelIndex
rowThe sibling row
columnThe 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