mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[ui] do not display the value if it is not valid, not computed dynamic output attributes
This commit is contained in:
parent
438b84a8bc
commit
bd74ee2829
1 changed files with 20 additions and 0 deletions
|
@ -193,6 +193,10 @@ RowLayout {
|
|||
Layout.fillWidth: true
|
||||
|
||||
sourceComponent: {
|
||||
if (attribute.value === undefined)
|
||||
{
|
||||
return notComputed_component
|
||||
}
|
||||
switch (attribute.type) {
|
||||
case "PushButtonParam":
|
||||
return pushButton_component
|
||||
|
@ -220,6 +224,22 @@ RowLayout {
|
|||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: notComputed_component
|
||||
Label {
|
||||
anchors.fill: parent
|
||||
text: MaterialIcons.do_not_disturb_alt
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
background: Rectangle {
|
||||
anchors.fill: parent
|
||||
border.width: 0
|
||||
radius: 20
|
||||
color: Qt.darker(palette.window, 1.1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: pushButton_component
|
||||
Button {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue