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