[ui] Node: display Attribute labels instead of technical names

This commit is contained in:
Yann Lanthony 2020-01-24 12:00:35 +01:00
parent ac149e1e51
commit 79d35ac5e3
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@ class GraphLayout(QObject):
super(GraphLayout, self).__init__(graph)
self.graph = graph
self._depthMode = GraphLayout.DepthMode.MaxDepth
self._nodeWidth = 150 # implicit node width
self._nodeWidth = 160 # implicit node width
self._nodeHeight = 120 # implicit node height
self._gridSpacing = 40 # column/line spacing between nodes

View file

@ -171,7 +171,7 @@ RowLayout {
id: nameLabel
property bool hovered: (inputConnectMA.containsMouse || inputConnectMA.drag.active || inputDropArea.containsDrag || outputConnectMA.containsMouse || outputConnectMA.drag.active || outputDropArea.containsDrag)
text: attribute.name
text: attribute.label
elide: hovered ? Text.ElideNone : Text.ElideMiddle
width: hovered ? contentWidth : parent.width
font.pointSize: 7