mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +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
|
Layout.fillWidth: true
|
||||||
|
|
||||||
sourceComponent: {
|
sourceComponent: {
|
||||||
|
if (attribute.value === undefined)
|
||||||
|
{
|
||||||
|
return notComputed_component
|
||||||
|
}
|
||||||
switch (attribute.type) {
|
switch (attribute.type) {
|
||||||
case "PushButtonParam":
|
case "PushButtonParam":
|
||||||
return pushButton_component
|
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 {
|
Component {
|
||||||
id: pushButton_component
|
id: pushButton_component
|
||||||
Button {
|
Button {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue