Commit 2ec57a63 authored by Samuel GAIST's avatar Samuel GAIST

[toolchaineditor] Fix warnings the tests showed

parent 88eb1865
Pipeline #50516 failed with stage
in 21 minutes and 29 seconds
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment