Skip to content

Commit 313f96c

Browse files
authored
Merge pull request #100 from altendky/visualization_texture_array
Fill generic parameter as sip.array[int] for QtDataVisualization textures
2 parents 39a7156 + 751b7e2 commit 313f96c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1515
* [#51](https://github.com/stlehmann/PyQt5-stubs/pull/51) adds `pyqtBoundSignal.signal` hinted as `str`
1616

1717
### Changed
18+
* [#100](https://github.com/stlehmann/PyQt5-stubs/pull/100) fill generic parameter as `sip.array[int]` for QtDataVisualization textures
1819
* [#92](https://github.com/stlehmann/PyQt5-stubs/pull/92) remove self from `qDefaultSurfaceFormat()` and `qIdForNode()`
1920
* [#83](https://github.com/stlehmann/PyQt5-stubs/pull/83) fixes `sip.array` to be generic
2021
* [#79](https://github.com/stlehmann/PyQt5-stubs/pull/79) fixes extra class layer in several modules

PyQt5-stubs/QtDataVisualization.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ class QCustom3DVolume('QCustom3DItem'):
834834
@typing.overload
835835
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
836836
@typing.overload
837-
def __init__(self, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, textureWidth: int, textureHeight: int, textureDepth: int, textureData: sip.array, textureFormat: QtGui.QImage.Format, colorTable: typing.Iterable[int], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
837+
def __init__(self, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, textureWidth: int, textureHeight: int, textureDepth: int, textureData: sip.array[int], textureFormat: QtGui.QImage.Format, colorTable: typing.Iterable[int], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
838838

839839
def sliceFrameThicknessesChanged(self, values: QtGui.QVector3D) -> None: ...
840840
def sliceFrameGapsChanged(self, values: QtGui.QVector3D) -> None: ...
@@ -846,7 +846,7 @@ class QCustom3DVolume('QCustom3DItem'):
846846
def preserveOpacityChanged(self, enabled: bool) -> None: ...
847847
def alphaMultiplierChanged(self, mult: float) -> None: ...
848848
def textureFormatChanged(self, format: QtGui.QImage.Format) -> None: ...
849-
def textureDataChanged(self, data: sip.array) -> None: ...
849+
def textureDataChanged(self, data: sip.array[int]) -> None: ...
850850
def colorTableChanged(self) -> None: ...
851851
def sliceIndexZChanged(self, value: int) -> None: ...
852852
def sliceIndexYChanged(self, value: int) -> None: ...
@@ -879,9 +879,9 @@ class QCustom3DVolume('QCustom3DItem'):
879879
def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, data: sip.voidptr) -> None: ...
880880
@typing.overload
881881
def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, image: QtGui.QImage) -> None: ...
882-
def textureData(self) -> sip.array: ...
883-
def createTextureData(self, images: typing.Iterable[QtGui.QImage]) -> sip.array: ...
884-
def setTextureData(self, data: sip.array) -> None: ...
882+
def textureData(self) -> sip.array[int]: ...
883+
def createTextureData(self, images: typing.Iterable[QtGui.QImage]) -> sip.array[int]: ...
884+
def setTextureData(self, data: sip.array[int]) -> None: ...
885885
def colorTable(self) -> typing.List[int]: ...
886886
def setColorTable(self, colors: typing.Iterable[int]) -> None: ...
887887
def setSliceIndices(self, x: int, y: int, z: int) -> None: ...

0 commit comments

Comments
 (0)