mirror of https://github.com/status-im/nimqml.git
feat: expose QAIM begin/endMoveRows
Needed for https://github.com/status-im/status-desktop/pull/9792
This commit is contained in:
parent
e8d27eee27
commit
75cb0ace7f
|
@ -279,6 +279,10 @@ proc dos_qabstractitemmodel_beginRemoveRows(model: DosQAbstractItemModel,
|
|||
first: cint,
|
||||
last: cint) {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qabstractitemmodel_endRemoveRows(model: DosQAbstractItemModel) {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qabstractitemmodel_beginMoveRows(model: DosQAbstractItemModel,
|
||||
sourceParentIndex: DosQModelIndex, sourceFirst: cint, sourceLast: cint,
|
||||
destParentIndex: DosQModelIndex, destinationChild: cint) {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qabstractitemmodel_endMoveRows(model: DosQAbstractItemModel) {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qabstractitemmodel_beginInsertColumns(model: DosQAbstractItemModel,
|
||||
parentIndex: DosQModelIndex,
|
||||
first: cint,
|
||||
|
|
|
@ -195,6 +195,16 @@ proc endRemoveRows*(self: QAbstractItemModel) =
|
|||
debugMsg("QAbstractItemModel", "endRemoveRows")
|
||||
dos_qabstractitemmodel_endRemoveRows(self.vptr.DosQAbstractItemModel)
|
||||
|
||||
proc beginMoveRows*(self: QAbstractItemModel, sourceParentIndex: QModelIndex, sourceFirst: int, sourceLast: int, destParentIndex: QModelIndex, destinationChild: int) =
|
||||
## Notify the view that the model is about to move rows
|
||||
debugMsg("QAbstractItemModel", "beginMoveRows")
|
||||
dos_qabstractitemmodel_beginMoveRows(self.vptr.DosQAbstractItemModel, sourceParentIndex.vptr, sourceFirst.cint, sourceLast.cint, destParentIndex.vptr, destinationChild.cint)
|
||||
|
||||
proc endMoveRows*(self: QAbstractItemModel) =
|
||||
## Notify the view that the rows have been moved
|
||||
debugMsg("QAbstractItemModel", "endMoveRows")
|
||||
dos_qabstractitemmodel_endMoveRows(self.vptr.DosQAbstractItemModel)
|
||||
|
||||
proc beginInsertColumns*(self: QAbstractItemModel, parentIndex: QModelIndex, first: int, last: int) =
|
||||
## Notify the view that the model is about to inserting the given number of columns
|
||||
debugMsg("QAbstractItemModel", "beginInsertColumns")
|
||||
|
|
Loading…
Reference in New Issue