Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
4ae1dcca
Commit
4ae1dcca
authored
Nov 21, 2019
by
Flavio TARSETTI
Browse files
[widgets][toolchaineditor] patch pins alignement
parent
35bd358f
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/widgets/toolchaineditor.py
View file @
4ae1dcca
...
...
@@ -191,7 +191,7 @@ class InputPin(BasePin):
x
=
-
(
width
/
2.0
)
y
=
(
self
.
block_object
.
height
+
self
.
block_object
.
inputs
.
index
(
self
.
pin
)
*
self
.
block_object
.
height
+
self
.
block_object
.
inputs
.
index
(
self
.
pin
)
*
self
.
block_object
.
pin_
height
)
rect
=
QRectF
(
QRect
(
x
,
y
,
width
,
height
))
...
...
@@ -213,7 +213,7 @@ class OutputPin(BasePin):
x
=
self
.
block_object
.
custom_width
-
(
width
/
2.0
)
y
=
(
self
.
block_object
.
height
+
self
.
block_object
.
outputs
.
index
(
self
.
pin
)
*
self
.
block_object
.
height
+
self
.
block_object
.
outputs
.
index
(
self
.
pin
)
*
self
.
block_object
.
pin_
height
)
rect
=
QRectF
(
QRect
(
x
,
y
,
width
,
height
))
...
...
@@ -530,6 +530,10 @@ class Block(QGraphicsObject):
else
:
max_pin_height
=
0
if
max_pin_height
==
0
:
self
.
custom_width
=
55
self
.
height
=
55
rect
=
QRect
(
0
,
-
text_height
,
...
...
@@ -611,6 +615,10 @@ class Block(QGraphicsObject):
self
.
border_pen
.
setWidth
(
0
)
painter
.
setPen
(
self
.
border_pen
)
if
max_pin_height
==
0
:
self
.
custom_width
=
55
self
.
height
=
55
painter
.
drawRoundedRect
(
0
,
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment