Skip to content

Commit b41d44b

Browse files
authored
Merge pull request #26 from KmolYuan/qpoint_op
Add operator support for QPoint and QPointF.
2 parents 5a008d9 + c7c0b13 commit b41d44b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

PyQt5-stubs/QtCore.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6000,6 +6000,10 @@ class QPoint(sip.simplewrapper):
60006000

60016001
def __neg__(self) -> 'QPoint': ...
60026002
def __pos__(self) -> 'QPoint': ...
6003+
def __add__(self, point: 'QPoint') -> 'QPoint': ...
6004+
def __sub__(self, point: 'QPoint') -> 'QPoint': ...
6005+
def __mul__(self, factor: float) -> 'QPoint': ...
6006+
def __truediv__(self, divisor: float) -> 'QPoint': ...
60036007
@staticmethod
60046008
def dotProduct(p1: 'QPoint', p2: 'QPoint') -> int: ...
60056009
def setY(self, ypos: int) -> None: ...
@@ -6025,6 +6029,10 @@ class QPointF(sip.simplewrapper):
60256029

60266030
def __neg__(self) -> 'QPointF': ...
60276031
def __pos__(self) -> 'QPointF': ...
6032+
def __add__(self, point: 'QPointF') -> 'QPointF': ...
6033+
def __sub__(self, point: 'QPointF') -> 'QPointF': ...
6034+
def __mul__(self, factor: float) -> 'QPointF': ...
6035+
def __truediv__(self, divisor: float) -> 'QPointF': ...
60286036
@staticmethod
60296037
def dotProduct(p1: typing.Union['QPointF', QPoint], p2: typing.Union['QPointF', QPoint]) -> float: ...
60306038
def manhattanLength(self) -> float: ...

0 commit comments

Comments
 (0)