From 79d35ac5e37f86555028bb9ca7f58f7eb79c1922 Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Fri, 24 Jan 2020 12:00:35 +0100 Subject: [PATCH] [ui] Node: display Attribute labels instead of technical names --- meshroom/ui/graph.py | 2 +- meshroom/ui/qml/GraphEditor/AttributePin.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/graph.py b/meshroom/ui/graph.py index 1248e886..f1fa8c46 100644 --- a/meshroom/ui/graph.py +++ b/meshroom/ui/graph.py @@ -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 diff --git a/meshroom/ui/qml/GraphEditor/AttributePin.qml b/meshroom/ui/qml/GraphEditor/AttributePin.qml index b3544f3b..5e2266a4 100755 --- a/meshroom/ui/qml/GraphEditor/AttributePin.qml +++ b/meshroom/ui/qml/GraphEditor/AttributePin.qml @@ -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