Skip to content

Commit

Permalink
Merge pull request python-qt-tools#49 from TilmanK/patch-1
Browse files Browse the repository at this point in the history
Made parameter model of QAbstractItemView.setModel optional
  • Loading branch information
stlehmann authored Jul 4, 2020
2 parents 2736af8 + 4397b64 commit f638b91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
* [#46](https://github.com/stlehmann/PyQt5-stubs/pull/46) fixes QCoreApplication and QObject signals
* [#48](https://github.com/stlehmann/PyQt5-stubs/pull/48) fixes some signals for QClipBoard, QWindows, QQuickView and QQml{Application,}Engine
* [#49](https://github.com/stlehmann/PyQt5-stubs/pull/49) fixes QAbstractItemView.setModel to accept None

### Removed

Expand Down
10 changes: 5 additions & 5 deletions PyQt5-stubs/QtWidgets.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ class QAbstractItemView(QAbstractScrollArea):
def selectionModel(self) -> QtCore.QItemSelectionModel: ...
def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ...
def model(self) -> QtCore.QAbstractItemModel: ...
def setModel(self, model: QtCore.QAbstractItemModel) -> None: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QAbstractSlider(QWidget):
Expand Down Expand Up @@ -1591,7 +1591,7 @@ class QColumnView(QAbstractItemView):
def selectAll(self) -> None: ...
def setRootIndex(self, index: QtCore.QModelIndex) -> None: ...
def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ...
def setModel(self, model: QtCore.QAbstractItemModel) -> None: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...
def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ...
def sizeHint(self) -> QtCore.QSize: ...
def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint = ...) -> None: ...
Expand Down Expand Up @@ -5421,7 +5421,7 @@ class QHeaderView(QAbstractItemView):
def length(self) -> int: ...
def offset(self) -> int: ...
def orientation(self) -> QtCore.Qt.Orientation: ...
def setModel(self, model: QtCore.QAbstractItemModel) -> None: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QInputDialog(QDialog):
Expand Down Expand Up @@ -8586,7 +8586,7 @@ class QTableView(QAbstractItemView):
def horizontalHeader(self) -> QHeaderView: ...
def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ...
def setRootIndex(self, index: QtCore.QModelIndex) -> None: ...
def setModel(self, model: QtCore.QAbstractItemModel) -> None: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QTableWidgetSelectionRange(sip.simplewrapper):
Expand Down Expand Up @@ -9326,7 +9326,7 @@ class QTreeView(QAbstractItemView):
def header(self) -> QHeaderView: ...
def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ...
def setRootIndex(self, index: QtCore.QModelIndex) -> None: ...
def setModel(self, model: QtCore.QAbstractItemModel) -> None: ...
def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QTreeWidgetItem(sip.wrapper):
Expand Down

0 comments on commit f638b91

Please sign in to comment.