--- a/src/eric7/EricGraphics/EricArrowItem.py Tue Dec 19 11:04:03 2023 +0100 +++ b/src/eric7/EricGraphics/EricArrowItem.py Tue Dec 19 19:57:08 2023 +0100 @@ -80,10 +80,14 @@ <b>Note:</b> This method does not redraw the item. - @param xa x-coordinate of the start point (float) - @param ya y-coordinate of the start point (float) - @param xb x-coordinate of the end point (float) - @param yb y-coordinate of the end point (float) + @param xa x-coordinate of the start point + @type float + @param ya y-coordinate of the start point + @type float + @param xb x-coordinate of the end point + @type float + @param yb y-coordinate of the end point + @type float """ self._origin = QPointF(xa, ya) self._end = QPointF(xb, yb) @@ -94,8 +98,10 @@ <b>Note:</b> This method does not redraw the item. - @param x x-coordinate of the start point (float) - @param y y-coordinate of the start point (float) + @param x x-coordinate of the start point + @type float + @param y y-coordinate of the start point + @type float """ self._origin = QPointF(x, y) @@ -105,8 +111,10 @@ <b>Note:</b> This method does not redraw the item. - @param x x-coordinate of the end point (float) - @param y y-coordinate of the end point (float) + @param x x-coordinate of the end point + @type float + @param y y-coordinate of the end point + @type float """ self._end = QPointF(x, y) @@ -114,7 +122,8 @@ """ Public method to return the bounding rectangle. - @return bounding rectangle (QRectF) + @return bounding rectangle + @rtype QRectF """ extra = self._halfLength / 2.0 return ( @@ -132,9 +141,12 @@ """ Public method to paint the item in local coordinates. - @param painter reference to the painter object (QPainter) - @param option style options (QStyleOptionGraphicsItem) - @param widget optional reference to the widget painted on (QWidget) + @param painter reference to the painter object + @type QPainter + @param option style options + @type QStyleOptionGraphicsItem + @param widget optional reference to the widget painted on + @type QWidget """ width = ( 2