mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
[ui] NodeEditor index tabBar updated for nonComputing nodes
This commit is contained in:
parent
3a199d7973
commit
927f261a93
1 changed files with 11 additions and 3 deletions
|
@ -337,6 +337,8 @@ Panel {
|
|||
id: tabBar
|
||||
visible: root.node !== null
|
||||
|
||||
property bool isComputable: root.node !== null && root.node.isComputable
|
||||
|
||||
Layout.fillWidth: true
|
||||
width: childrenRect.width
|
||||
position: TabBar.Footer
|
||||
|
@ -348,21 +350,21 @@ Panel {
|
|||
rightPadding: leftPadding
|
||||
}
|
||||
TabButton {
|
||||
visible: node != null && node.isComputable
|
||||
visible: tabBar.isComputable
|
||||
width: !visible ? 0 : tabBar.width / tabBar.count
|
||||
text: "Log"
|
||||
leftPadding: 8
|
||||
rightPadding: leftPadding
|
||||
}
|
||||
TabButton {
|
||||
visible: node != null && node.isComputable
|
||||
visible: tabBar.isComputable
|
||||
width: !visible ? 0 : tabBar.width / tabBar.count
|
||||
text: "Statistics"
|
||||
leftPadding: 8
|
||||
rightPadding: leftPadding
|
||||
}
|
||||
TabButton {
|
||||
visible: node != null && node.isComputable
|
||||
visible: tabBar.isComputable
|
||||
width: !visible ? 0 : tabBar.width / tabBar.count
|
||||
text: "Status"
|
||||
leftPadding: 8
|
||||
|
@ -379,6 +381,12 @@ Panel {
|
|||
leftPadding: 8
|
||||
rightPadding: leftPadding
|
||||
}
|
||||
|
||||
onIsComputableChanged: {
|
||||
if (!isComputable) {
|
||||
tabBar.currentIndex = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue