mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-05 05:06:46 +02:00
[Panorama Viewer] Change syntax logic for more consistency
Changing syntax to match the same logic everywhere. We create a boolean and then use it in the enable property.
This commit is contained in:
parent
3ea4e277d8
commit
ae511e0ec1
1 changed files with 10 additions and 10 deletions
|
@ -833,16 +833,7 @@ FocusScope {
|
|||
MaterialToolButton {
|
||||
id: displayPanoramaViewer
|
||||
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('SfMTransform').node : null
|
||||
property bool isComputed: activeNode && activeNode.isComputed
|
||||
|
||||
ToolTip.text: "Panorama Viewer"
|
||||
text: MaterialIcons.panorama_sphere
|
||||
font.pointSize: 16
|
||||
padding: 0
|
||||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
checked: false
|
||||
enabled: {
|
||||
property bool isComputed: {
|
||||
if(!activeNode)
|
||||
return false;
|
||||
if(activeNode.attribute("method").value !== "manual")
|
||||
|
@ -855,6 +846,15 @@ FocusScope {
|
|||
return false;
|
||||
return inputAttrLink.node.isComputed;
|
||||
}
|
||||
|
||||
ToolTip.text: "Panorama Viewer"
|
||||
text: MaterialIcons.panorama_sphere
|
||||
font.pointSize: 16
|
||||
padding: 0
|
||||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
checked: false
|
||||
enabled: activeNode && isComputed
|
||||
onCheckedChanged : {
|
||||
if((displayHDR.checked || displayLensDistortionViewer.checked) && checked){
|
||||
displayHDR.checked = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue