Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made parameter model of QAbstractItemView.setModel optional #49

Merged
merged 3 commits into from
Jul 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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