diff --git a/PyQt5-stubs/QtCore.pyi b/PyQt5-stubs/QtCore.pyi index cbd7c28d..b2501948 100644 --- a/PyQt5-stubs/QtCore.pyi +++ b/PyQt5-stubs/QtCore.pyi @@ -3292,7 +3292,7 @@ class QAbstractItemModel(QObject): def endMoveRows(self) -> None: ... def beginMoveRows(self, sourceParent: QModelIndex, sourceFirst: int, sourceLast: int, destinationParent: QModelIndex, destinationRow: int) -> bool: ... def columnsMoved(self, parent: QModelIndex, start: int, end: int, destination: QModelIndex, column: int) -> None: ... - def columnsAboutToBeMoved(self, sourceParent: QModelIndex, sourceStart: int, sourceEnd: int, destinationParent: QModelIndex, destinationColumn: int) -> None: ... + columnsAboutToBeMoved: typing.ClassVar[pyqtSignal] def rowsMoved(self, parent: QModelIndex, start: int, end: int, destination: QModelIndex, row: int) -> None: ... def rowsAboutToBeMoved(self, sourceParent: QModelIndex, sourceStart: int, sourceEnd: int, destinationParent: QModelIndex, destinationRow: int) -> None: ... def createIndex(self, row: int, column: int, object: typing.Any = ...) -> QModelIndex: ... @@ -3317,19 +3317,19 @@ class QAbstractItemModel(QObject): def encodeData(self, indexes: typing.Iterable[QModelIndex], stream: 'QDataStream') -> None: ... def revert(self) -> None: ... def submit(self) -> bool: ... - def modelReset(self) -> None: ... - def modelAboutToBeReset(self) -> None: ... - def columnsRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... - def columnsAboutToBeRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... - def columnsInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... - def columnsAboutToBeInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... - def rowsRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... - def rowsAboutToBeRemoved(self, parent: QModelIndex, first: int, last: int) -> None: ... - def rowsInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... - def rowsAboutToBeInserted(self, parent: QModelIndex, first: int, last: int) -> None: ... - def layoutChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... - def layoutAboutToBeChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... - def headerDataChanged(self, orientation: Qt.Orientation, first: int, last: int) -> None: ... + modelReset: typing.ClassVar[pyqtSignal] + modelAboutToBeReset: typing.ClassVar[pyqtSignal] + columnsRemoved: typing.ClassVar[pyqtSignal] + columnsAboutToBeRemoved: typing.ClassVar[pyqtSignal] + columnsInserted: typing.ClassVar[pyqtSignal] + columnsAboutToBeInserted: typing.ClassVar[pyqtSignal] + rowsRemoved: typing.ClassVar[pyqtSignal] + rowsAboutToBeRemoved: typing.ClassVar[pyqtSignal] + rowsInserted: typing.ClassVar[pyqtSignal] + rowsAboutToBeInserted: typing.ClassVar[pyqtSignal] + layoutChanged: typing.ClassVar[pyqtSignal] + layoutAboutToBeChanged: typing.ClassVar[pyqtSignal] + headerDataChanged: typing.ClassVar[pyqtSignal] dataChanged: typing.ClassVar[pyqtSignal] def span(self, index: QModelIndex) -> 'QSize': ... def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ...