Skip to content

Commit

Permalink
Merge pull request #162 from TilmanK/master
Browse files Browse the repository at this point in the history
Fix of all signals. Script to annotate signals automatically.
  • Loading branch information
bluebird75 authored Dec 27, 2021
2 parents a33dc77 + 5f0b7a1 commit ad6a365
Show file tree
Hide file tree
Showing 39 changed files with 2,040 additions and 2,055 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* [#156](https://github.com/python-qt-tools/PyQt5-stubs/pull/156) add operators to `QSize` and `QSizeF`
* [#153](https://github.com/python-qt-tools/PyQt5-stubs/pull/153) Support all implemented arithmetic operations for QFlags
based classes in modules QtCore, QtWidgets, QtGui, QtNetwork, QtDBus, QtOpenGL, QtPrintsupport, QtSql, QtTest, QtXml
* [#162](https://github.com/python-qt-tools/PyQt5-stubs/pull/162) fixes all method not declared as signals
* [#184](https://github.com/python-qt-tools/PyQt5-stubs/pull/184) Fix missing module variable
detected by latest mypy 0.930

Expand Down
104 changes: 52 additions & 52 deletions PyQt5-stubs/Qt3DAnimation.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class QAbstractAnimation(QtCore.QObject):
MorphingAnimation = ... # type: QAbstractAnimation.AnimationType
VertexBlendAnimation = ... # type: QAbstractAnimation.AnimationType

def durationChanged(self, duration: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def animationNameChanged(self, name: str) -> None: ...
durationChanged: typing.ClassVar[QtCore.pyqtSignal]
positionChanged: typing.ClassVar[QtCore.pyqtSignal]
animationNameChanged: typing.ClassVar[QtCore.pyqtSignal]
def setDuration(self, duration: float) -> None: ...
def setPosition(self, position: float) -> None: ...
def setAnimationName(self, name: str) -> None: ...
Expand All @@ -66,7 +66,7 @@ class QAbstractAnimation(QtCore.QObject):
class QAbstractAnimationClip(Qt3DCore.QNode):

def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def durationChanged(self, duration: float) -> None: ...
durationChanged: typing.ClassVar[QtCore.pyqtSignal]
def duration(self) -> float: ...

class QAbstractChannelMapping(Qt3DCore.QNode): ...
Expand All @@ -81,11 +81,11 @@ class QAbstractClipAnimator(Qt3DCore.QComponent):
def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def normalizedTimeChanged(self, index: float) -> None: ...
def clockChanged(self, clock: 'QClock') -> None: ...
def loopCountChanged(self, loops: int) -> None: ...
def channelMapperChanged(self, channelMapper: 'QChannelMapper') -> None: ...
def runningChanged(self, running: bool) -> None: ...
normalizedTimeChanged: typing.ClassVar[QtCore.pyqtSignal]
clockChanged: typing.ClassVar[QtCore.pyqtSignal]
loopCountChanged: typing.ClassVar[QtCore.pyqtSignal]
channelMapperChanged: typing.ClassVar[QtCore.pyqtSignal]
runningChanged: typing.ClassVar[QtCore.pyqtSignal]
def stop(self) -> None: ...
def start(self) -> None: ...
def setNormalizedTime(self, timeFraction: float) -> None: ...
Expand All @@ -107,9 +107,9 @@ class QAdditiveClipBlend('QAbstractClipBlendNode'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def additiveClipChanged(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
def baseClipChanged(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
def additiveFactorChanged(self, additiveFactor: float) -> None: ...
additiveClipChanged: typing.ClassVar[QtCore.pyqtSignal]
baseClipChanged: typing.ClassVar[QtCore.pyqtSignal]
additiveFactorChanged: typing.ClassVar[QtCore.pyqtSignal]
def setAdditiveClip(self, additiveClip: 'QAbstractClipBlendNode') -> None: ...
def setBaseClip(self, baseClip: 'QAbstractClipBlendNode') -> None: ...
def setAdditiveFactor(self, additiveFactor: float) -> None: ...
Expand All @@ -125,7 +125,7 @@ class QAnimationClip('QAbstractAnimationClip'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def clipDataChanged(self, clipData: 'QAnimationClipData') -> None: ...
clipDataChanged: typing.ClassVar[QtCore.pyqtSignal]
def setClipData(self, clipData: 'QAnimationClipData') -> None: ...
def clipData(self) -> 'QAnimationClipData': ...

Expand Down Expand Up @@ -162,8 +162,8 @@ class QAnimationClipLoader('QAbstractAnimationClip'):
def __init__(self, source: QtCore.QUrl, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def sceneChangeEvent(self, change: Qt3DCore.QSceneChange) -> None: ...
def statusChanged(self, status: 'QAnimationClipLoader.Status') -> None: ...
def sourceChanged(self, source: QtCore.QUrl) -> None: ...
statusChanged: typing.ClassVar[QtCore.pyqtSignal]
sourceChanged: typing.ClassVar[QtCore.pyqtSignal]
def setSource(self, source: QtCore.QUrl) -> None: ...
def status(self) -> 'QAnimationClipLoader.Status': ...
def source(self) -> QtCore.QUrl: ...
Expand All @@ -172,12 +172,12 @@ class QAnimationController(QtCore.QObject):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def recursiveChanged(self, recursive: bool) -> None: ...
def entityChanged(self, entity: Qt3DCore.QEntity) -> None: ...
def positionOffsetChanged(self, offset: float) -> None: ...
def positionScaleChanged(self, scale: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def activeAnimationGroupChanged(self, index: int) -> None: ...
recursiveChanged: typing.ClassVar[QtCore.pyqtSignal]
entityChanged: typing.ClassVar[QtCore.pyqtSignal]
positionOffsetChanged: typing.ClassVar[QtCore.pyqtSignal]
positionScaleChanged: typing.ClassVar[QtCore.pyqtSignal]
positionChanged: typing.ClassVar[QtCore.pyqtSignal]
activeAnimationGroupChanged: typing.ClassVar[QtCore.pyqtSignal]
def setRecursive(self, recursive: bool) -> None: ...
def setEntity(self, entity: Qt3DCore.QEntity) -> None: ...
def setPositionOffset(self, offset: float) -> None: ...
Expand All @@ -201,9 +201,9 @@ class QAnimationGroup(QtCore.QObject):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def durationChanged(self, duration: float) -> None: ...
def positionChanged(self, position: float) -> None: ...
def nameChanged(self, name: str) -> None: ...
durationChanged: typing.ClassVar[QtCore.pyqtSignal]
positionChanged: typing.ClassVar[QtCore.pyqtSignal]
nameChanged: typing.ClassVar[QtCore.pyqtSignal]
def setPosition(self, position: float) -> None: ...
def setName(self, name: str) -> None: ...
def removeAnimation(self, animation: 'QAbstractAnimation') -> None: ...
Expand All @@ -218,7 +218,7 @@ class QBlendedClipAnimator('QAbstractClipAnimator'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def blendTreeChanged(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
blendTreeChanged: typing.ClassVar[QtCore.pyqtSignal]
def setBlendTree(self, blendTree: 'QAbstractClipBlendNode') -> None: ...
def blendTree(self) -> 'QAbstractClipBlendNode': ...

Expand Down Expand Up @@ -270,9 +270,9 @@ class QChannelMapping('QAbstractChannelMapping'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def propertyChanged(self, property: str) -> None: ...
def targetChanged(self, target: Qt3DCore.QNode) -> None: ...
def channelNameChanged(self, channelName: str) -> None: ...
propertyChanged: typing.ClassVar[QtCore.pyqtSignal]
targetChanged: typing.ClassVar[QtCore.pyqtSignal]
channelNameChanged: typing.ClassVar[QtCore.pyqtSignal]
def setProperty(self, property: str) -> None: ... # type: ignore[override]
def setTarget(self, target: Qt3DCore.QNode) -> None: ...
def setChannelName(self, channelName: str) -> None: ...
Expand All @@ -284,7 +284,7 @@ class QClipAnimator('QAbstractClipAnimator'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
clipChanged: typing.ClassVar[QtCore.pyqtSignal]
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
def clip(self) -> 'QAbstractAnimationClip': ...

Expand All @@ -299,15 +299,15 @@ class QClipBlendValue('QAbstractClipBlendNode'):
@typing.overload
def __init__(self, clip: 'QAbstractAnimationClip', parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def clipChanged(self, clip: 'QAbstractAnimationClip') -> None: ...
clipChanged: typing.ClassVar[QtCore.pyqtSignal]
def setClip(self, clip: 'QAbstractAnimationClip') -> None: ...
def clip(self) -> 'QAbstractAnimationClip': ...

class QClock(Qt3DCore.QNode):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def playbackRateChanged(self, playbackRate: float) -> None: ...
playbackRateChanged: typing.ClassVar[QtCore.pyqtSignal]
def setPlaybackRate(self, playbackRate: float) -> None: ...
def playbackRate(self) -> float: ...

Expand Down Expand Up @@ -353,12 +353,12 @@ class QKeyframeAnimation('QAbstractAnimation'):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def endModeChanged(self, endMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def startModeChanged(self, startMode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def targetNameChanged(self, name: str) -> None: ...
def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def targetChanged(self, target: Qt3DCore.QTransform) -> None: ...
def framePositionsChanged(self, positions: typing.Iterable[float]) -> None: ...
endModeChanged: typing.ClassVar[QtCore.pyqtSignal]
startModeChanged: typing.ClassVar[QtCore.pyqtSignal]
targetNameChanged: typing.ClassVar[QtCore.pyqtSignal]
easingChanged: typing.ClassVar[QtCore.pyqtSignal]
targetChanged: typing.ClassVar[QtCore.pyqtSignal]
framePositionsChanged: typing.ClassVar[QtCore.pyqtSignal]
def setEndMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def setStartMode(self, mode: 'QKeyframeAnimation.RepeatMode') -> None: ...
def setTargetName(self, name: str) -> None: ...
Expand All @@ -380,9 +380,9 @@ class QLerpClipBlend('QAbstractClipBlendNode'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def endClipChanged(self, endClip: 'QAbstractClipBlendNode') -> None: ...
def startClipChanged(self, startClip: 'QAbstractClipBlendNode') -> None: ...
def blendFactorChanged(self, blendFactor: float) -> None: ...
endClipChanged: typing.ClassVar[QtCore.pyqtSignal]
startClipChanged: typing.ClassVar[QtCore.pyqtSignal]
blendFactorChanged: typing.ClassVar[QtCore.pyqtSignal]
def setEndClip(self, endClip: 'QAbstractClipBlendNode') -> None: ...
def setStartClip(self, startClip: 'QAbstractClipBlendNode') -> None: ...
def setBlendFactor(self, blendFactor: float) -> None: ...
Expand All @@ -401,12 +401,12 @@ class QMorphingAnimation('QAbstractAnimation'):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def easingChanged(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def methodChanged(self, method: 'QMorphingAnimation.Method') -> None: ...
def targetNameChanged(self, name: str) -> None: ...
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def interpolatorChanged(self, interpolator: float) -> None: ...
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
easingChanged: typing.ClassVar[QtCore.pyqtSignal]
methodChanged: typing.ClassVar[QtCore.pyqtSignal]
targetNameChanged: typing.ClassVar[QtCore.pyqtSignal]
targetChanged: typing.ClassVar[QtCore.pyqtSignal]
interpolatorChanged: typing.ClassVar[QtCore.pyqtSignal]
targetPositionsChanged: typing.ClassVar[QtCore.pyqtSignal]
def setEasing(self, easing: typing.Union[QtCore.QEasingCurve, QtCore.QEasingCurve.Type]) -> None: ...
def setMethod(self, method: 'QMorphingAnimation.Method') -> None: ...
def setTargetName(self, name: str) -> None: ...
Expand All @@ -429,7 +429,7 @@ class QMorphTarget(QtCore.QObject):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def attributeNamesChanged(self, attributeNames: typing.Iterable[str]) -> None: ...
attributeNamesChanged: typing.ClassVar[QtCore.pyqtSignal]
@staticmethod
def fromGeometry(geometry: Qt3DRender.QGeometry, attributes: typing.Iterable[str]) -> 'QMorphTarget': ...
def removeAttribute(self, attribute: Qt3DRender.QAttribute) -> None: ...
Expand All @@ -442,18 +442,18 @@ class QSkeletonMapping('QAbstractChannelMapping'):

def __init__(self, parent: typing.Optional[Qt3DCore.QNode] = ...) -> None: ...

def skeletonChanged(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
skeletonChanged: typing.ClassVar[QtCore.pyqtSignal]
def setSkeleton(self, skeleton: Qt3DCore.QAbstractSkeleton) -> None: ...
def skeleton(self) -> Qt3DCore.QAbstractSkeleton: ...

class QVertexBlendAnimation('QAbstractAnimation'):

def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def targetNameChanged(self, name: str) -> None: ...
def targetChanged(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def interpolatorChanged(self, interpolator: float) -> None: ...
def targetPositionsChanged(self, targetPositions: typing.Iterable[float]) -> None: ...
targetNameChanged: typing.ClassVar[QtCore.pyqtSignal]
targetChanged: typing.ClassVar[QtCore.pyqtSignal]
interpolatorChanged: typing.ClassVar[QtCore.pyqtSignal]
targetPositionsChanged: typing.ClassVar[QtCore.pyqtSignal]
def setTargetName(self, name: str) -> None: ...
def setTarget(self, target: Qt3DRender.QGeometryRenderer) -> None: ...
def setTargetPositions(self, targetPositions: typing.Iterable[float]) -> None: ...
Expand Down
Loading

0 comments on commit ad6a365

Please sign in to comment.