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

Functions related to the QAbstractItemModel class. More...

Functions

DOS_API DosQMetaObject * dos_qabstractitemmodel_qmetaobject (void)
 Return QMetaObject associated to the QAbstractItemModel class. More...
 
DOS_API DosQAbstractItemModel * dos_qabstractitemmodel_create (void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
 Create a new QAbstractItemModel. More...
 
DOS_API bool dos_qabstractitemmodel_setData (DosQAbstractItemModel *vptr, DosQModelIndex *index, DosQVariant *data, int role)
 Calls the QAbstractItemModel::setData function. More...
 
DOS_API DosQHashIntQByteArray * dos_qabstractitemmodel_roleNames (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::roleNames function. More...
 
DOS_API int dos_qabstractitemmodel_flags (DosQAbstractItemModel *vptr, DosQModelIndex *index)
 Calls the QAbstractItemModel::flags function. More...
 
DOS_API DosQVariant * dos_qabstractitemmodel_headerData (DosQAbstractItemModel *vptr, int section, int orientation, int role)
 Calls the QAbstractItemModel::headerData function. More...
 
DOS_API bool dos_qabstractitemmodel_hasChildren (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::hasChildren function.
 
DOS_API bool dos_qabstractitemmodel_hasIndex (DosQAbstractItemModel *vptr, int row, int column, DosQModelIndex *dosParentIndex)
 Calls the QAbstractItemModel::hasIndex function.
 
DOS_API bool dos_qabstractitemmodel_canFetchMore (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::canFetchMore function.
 
DOS_API void dos_qabstractitemmodel_fetchMore (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::fetchMore function.
 
DOS_API void dos_qabstractitemmodel_beginInsertRows (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginInsertRows() function. More...
 
DOS_API void dos_qabstractitemmodel_endInsertRows (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endInsertRows() function. More...
 
DOS_API void dos_qabstractitemmodel_beginRemoveRows (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginRemovetRows() function. More...
 
DOS_API void dos_qabstractitemmodel_endRemoveRows (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endRemoveRows() function. More...
 
DOS_API void dos_qabstractitemmodel_beginInsertColumns (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginInsertColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_endInsertColumns (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endInsertColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_beginRemoveColumns (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginRemovetColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_endRemoveColumns (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endRemoveColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_beginResetModel (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::beginResetModel() function. More...
 
DOS_API void dos_qabstractitemmodel_endResetModel (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endResetModel() function. More...
 
DOS_API void dos_qabstractitemmodel_dataChanged (DosQAbstractItemModel *vptr, const DosQModelIndex *topLeft, const DosQModelIndex *bottomRight, int *rolesPtr, int rolesLength)
 Emit the dataChanged signal. More...
 
DOS_API DosQModelIndex * dos_qabstractitemmodel_createIndex (DosQAbstractItemModel *vptr, int row, int column, void *data)
 Calls the QAbstractItemModel::createIndex() function.
 

Detailed Description

Functions related to the QAbstractItemModel class.

Function Documentation

◆ dos_qabstractitemmodel_beginInsertColumns()

DOS_API void dos_qabstractitemmodel_beginInsertColumns ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  parent,
int  first,
int  last 
)

Calls the QAbstractItemModel::beginInsertColumns() function.

Parameters
vptrThe QAbstractItemModel
parentThe parent QModelIndex
firstThe first column in the range
lastThe last column in the range
Note
The parent QModelIndex is owned by the caller thus it will not be deleted

◆ dos_qabstractitemmodel_beginInsertRows()

DOS_API void dos_qabstractitemmodel_beginInsertRows ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  parent,
int  first,
int  last 
)

Calls the QAbstractItemModel::beginInsertRows() function.

Parameters
vptrThe QAbstractItemModel
parentThe parent QModelIndex
firstThe first row in the range
lastThe last row in the range
Note
The parent QModelIndex is owned by the caller thus it will not be deleted

◆ dos_qabstractitemmodel_beginRemoveColumns()

DOS_API void dos_qabstractitemmodel_beginRemoveColumns ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  parent,
int  first,
int  last 
)

Calls the QAbstractItemModel::beginRemovetColumns() function.

Parameters
vptrThe QAbstractItemModel
parentThe parent QModelIndex
firstThe first column in the range
lastThe last column in the range
Note
The parent QModelIndex is owned by the caller thus it will not be deleted

◆ dos_qabstractitemmodel_beginRemoveRows()

DOS_API void dos_qabstractitemmodel_beginRemoveRows ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  parent,
int  first,
int  last 
)

Calls the QAbstractItemModel::beginRemovetRows() function.

Parameters
vptrThe QAbstractItemModel
parentThe parent QModelIndex
firstThe first column in the range
lastThe last column in the range
Note
The parent QModelIndex is owned by the caller thus it will not be deleted

◆ dos_qabstractitemmodel_beginResetModel()

DOS_API void dos_qabstractitemmodel_beginResetModel ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::beginResetModel() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_create()

DOS_API DosQAbstractItemModel* dos_qabstractitemmodel_create ( void *  callbackObject,
DosQMetaObject *  metaObject,
DObjectCallback  dObjectCallback,
DosQAbstractItemModelCallbacks *  callbacks 
)

Create a new QAbstractItemModel.

Parameters
callbackObjectThe pointer of QAbstractItemModel in the binded language
metaObjectThe QMetaObject for this QAbstractItemModel
dObjectCallbackThe callback for handling the properties read/write and slots execution
callbacksThe QAbstractItemModel callbacks
Note
The callbacks struct is copied so you can freely delete after calling this function

◆ dos_qabstractitemmodel_dataChanged()

DOS_API void dos_qabstractitemmodel_dataChanged ( DosQAbstractItemModel *  vptr,
const DosQModelIndex *  topLeft,
const DosQModelIndex *  bottomRight,
int *  rolesPtr,
int  rolesLength 
)

Emit the dataChanged signal.

Parameters
vptrThe DosQAbstractItemModel pointer
topLeftThe topLeft DosQModelIndex
bottomRightThe bottomright DosQModelIndex
rolesPtrThe roles array
rolesLengthThe roles array length
Note
The topLeft, bottomRight and rolesPtr arguments are owned by the caller thus they will not be deleted

◆ dos_qabstractitemmodel_endInsertColumns()

DOS_API void dos_qabstractitemmodel_endInsertColumns ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::endInsertColumns() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_endInsertRows()

DOS_API void dos_qabstractitemmodel_endInsertRows ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::endInsertRows() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_endRemoveColumns()

DOS_API void dos_qabstractitemmodel_endRemoveColumns ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::endRemoveColumns() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_endRemoveRows()

DOS_API void dos_qabstractitemmodel_endRemoveRows ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::endRemoveRows() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_endResetModel()

DOS_API void dos_qabstractitemmodel_endResetModel ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::endResetModel() function.

Parameters
vptrThe QAbstractItemModel

◆ dos_qabstractitemmodel_flags()

DOS_API int dos_qabstractitemmodel_flags ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  index 
)

Calls the QAbstractItemModel::flags function.

Calls the default QAbstractItemModel::flags() function.

◆ dos_qabstractitemmodel_headerData()

DOS_API DosQVariant * dos_qabstractitemmodel_headerData ( DosQAbstractItemModel *  vptr,
int  section,
int  orientation,
int  role 
)

Calls the QAbstractItemModel::headerData function.

Calls the default QAbstractItemModel::headerData() function.

◆ dos_qabstractitemmodel_qmetaobject()

DOS_API DosQMetaObject* dos_qabstractitemmodel_qmetaobject ( void  )

Return QMetaObject associated to the QAbstractItemModel class.

Returns
The QMetaObject of the QAbstractItemModel class
Note
The returned QMetaObject should be freed using dos_qmetaobject_delete().

◆ dos_qabstractitemmodel_roleNames()

DOS_API DosQHashIntQByteArray * dos_qabstractitemmodel_roleNames ( DosQAbstractItemModel *  vptr)

Calls the QAbstractItemModel::roleNames function.

Calls the default QAbstractItemModel::roleNames() function.

◆ dos_qabstractitemmodel_setData()

DOS_API bool dos_qabstractitemmodel_setData ( DosQAbstractItemModel *  vptr,
DosQModelIndex *  index,
DosQVariant *  data,
int  role 
)

Calls the QAbstractItemModel::setData function.

Calls the default QAbstractItemModel::setData() function.