File tree 1 file changed +7
-3
lines changed
meshroom/ui/qml/GraphEditor
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -235,16 +235,19 @@ RowLayout {
235
235
MaterialToolLabel {
236
236
id: nameLabel
237
237
238
+ width: hovered ? contentWidth : parent .width
238
239
anchors .rightMargin : 0
239
240
anchors .right : root .attribute && root .attribute .isOutput ? parent .right : undefined
240
241
labelIconRow .layoutDirection : root .attribute .isOutput ? Qt .RightToLeft : Qt .LeftToRight
241
242
labelIconRow .spacing : 0
242
243
243
244
enabled: ! root .readOnly
244
245
visible: true
245
- property bool hovered: (inputConnectMA .containsMouse || inputConnectMA .drag .active ||
246
- inputDropArea .containsDrag || outputConnectMA .containsMouse ||
247
- outputConnectMA .drag .active || outputDropArea .containsDrag )
246
+ property bool hovered: parent .width == 0 || ((inputConnectMA .hoverEnabled || outputConnectMA .hoverEnabled ) &&
247
+ ((inputConnectMA .containsMouse || inputConnectMA .drag .active ||
248
+ inputDropArea .containsDrag || outputConnectMA .containsMouse ||
249
+ outputConnectMA .drag .active || outputDropArea .containsDrag )))
250
+
248
251
249
252
labelIconColor: {
250
253
if ((root .attribute .hasOutputConnections || root .attribute .isLink ) && ! root .attribute .enabled ) {
@@ -260,6 +263,7 @@ RowLayout {
260
263
label .text : root .attribute .label
261
264
label .font .pointSize : 7
262
265
label .elide : hovered ? Text .ElideNone : Text .ElideMiddle
266
+ label .width : hovered ? contentWidth : parent .width
263
267
label .horizontalAlignment : root .attribute && root .attribute .isOutput ? Text .AlignRight : Text .AlignLeft
264
268
265
269
// Icon
You can’t perform that action at this time.
0 commit comments