From 8c79f3d09324d42750e88d0eebe8cb51ffe593ab Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Sun, 22 Aug 2021 11:32:59 +0200 Subject: [PATCH] Fix some freshly created bugs in `QAbstractItemModel.ts` --- src/lib/QtCore/QAbstractItemModel.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/QtCore/QAbstractItemModel.ts b/src/lib/QtCore/QAbstractItemModel.ts index fd81bb3ba..9c9ff30a4 100644 --- a/src/lib/QtCore/QAbstractItemModel.ts +++ b/src/lib/QtCore/QAbstractItemModel.ts @@ -203,11 +203,11 @@ export class QAbstractItemModel extends NodeObject { // *** Protected Functions *** beginInsertColumns(parent: QModelIndex, first: number, last: number): void { - this.native.beginInsertColumns(parent, first, last); + this.native.beginInsertColumns(parent.native, first, last); } beginInsertRows(parent: QModelIndex, first: number, last: number): void { - this.native.beginInsertRows(parent, first, last); + this.native.beginInsertRows(parent.native, first, last); } beginMoveColumns( @@ -217,7 +217,7 @@ export class QAbstractItemModel extends NodeObject { destinationParent: QModelIndex, destinationChild: number, ): boolean { - return this.native.beginMoveColumns(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); + return this.native.beginMoveColumns(sourceParent.native, sourceFirst, sourceLast, destinationParent.native, destinationChild); } beginMoveRows( @@ -227,15 +227,15 @@ export class QAbstractItemModel extends NodeObject { destinationParent: QModelIndex, destinationChild: number, ): boolean { - return this.native.beginMoveRows(sourceParent, sourceFirst, sourceLast, destinationParent, destinationChild); + return this.native.beginMoveRows(sourceParent.native, sourceFirst, sourceLast, destinationParent.native, destinationChild); } beginRemoveColumns(parent: QModelIndex, first: number, last: number): void { - this.native.beginRemoveColumns(parent, first, last); + this.native.beginRemoveColumns(parent.native, first, last); } beginRemoveRows(parent: QModelIndex, first: number, last: number): void { - this.native.beginRemoveRows(parent, first, last); + this.native.beginRemoveRows(parent.native, first, last); } beginResetModel(): void {