diff --git a/beat/editor/widgets/toolchaineditor.py b/beat/editor/widgets/toolchaineditor.py index e56a61419947d733fcfe2f18a866a2c45574047b..248d1daa23e3bbe8f055c3ab07306d26f3e19575 100644 --- a/beat/editor/widgets/toolchaineditor.py +++ b/beat/editor/widgets/toolchaineditor.py @@ -231,7 +231,7 @@ class InputPin(BasePin): * self.block_object.pin_height ) - rect = QRectF(QRect(x, y, width, height)) + rect = QRectF(x, y, width, height) return rect @@ -267,7 +267,7 @@ class OutputPin(BasePin): * self.block_object.pin_height ) - rect = QRectF(QRect(x, y, width, height)) + rect = QRectF(x, y, width, height) return rect @@ -1050,8 +1050,7 @@ class Block(QGraphicsObject): self.custom_height = ( text_height + self.height + max_pin_height * self.pin_height ) - rect = QRect(0, -text_height, self.custom_width, self.custom_height) - rect = QRectF(rect) + rect = QRectF(0, -text_height, self.custom_width, self.custom_height) return rect def draw_pins_name(self, painter, _type, data, offset): @@ -1367,7 +1366,7 @@ class ToolchainView(QGraphicsView): min_y = min(y_list) + block.boundingRect().y() max_width = max(x_list) + max(width_list) - min_x max_height = max(y_list) + max(height_list) - min_y - rect = QRectF(QRect(min_x, min_y, max_width, max_height)) + rect = QRectF(min_x, min_y, max_width, max_height) toolchain_focus = rect else: toolchain_focus = self.scene().itemsBoundingRect()