mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +02:00
[ui] Node: elide attribute names + extend at mouse hover
This commit is contained in:
parent
8c7a4bcc0f
commit
a9bffb6c74
2 changed files with 34 additions and 6 deletions
|
@ -98,19 +98,20 @@ Item {
|
|||
|
||||
Item { width: 1; height: 2}
|
||||
|
||||
RowLayout {
|
||||
Item {
|
||||
width: parent.width + 6
|
||||
height: childrenRect.height
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
Column {
|
||||
id: inputs
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
width: parent.width / 2
|
||||
Repeater {
|
||||
model: node.attributes
|
||||
delegate: Loader {
|
||||
active: !object.isOutput && object.type == "File"
|
||||
|| (object.type == "ListAttribute" && object.desc.elementDesc.type == "File") // TODO: review this
|
||||
width: inputs.width
|
||||
|
||||
sourceComponent: AttributePin {
|
||||
id: inPin
|
||||
|
@ -125,8 +126,7 @@ Item {
|
|||
}
|
||||
Column {
|
||||
id: outputs
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
width: parent.width / 2
|
||||
anchors.right: parent.right
|
||||
Repeater {
|
||||
model: node.attributes
|
||||
|
@ -134,6 +134,7 @@ Item {
|
|||
delegate: Loader {
|
||||
active: object.isOutput
|
||||
anchors.right: parent.right
|
||||
width: outputs.width
|
||||
|
||||
sourceComponent: AttributePin {
|
||||
id: outPin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue