mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-06 05:36:39 +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 {
|
MaterialToolButton {
|
||||||
id: displayPanoramaViewer
|
id: displayPanoramaViewer
|
||||||
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('SfMTransform').node : null
|
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('SfMTransform').node : null
|
||||||
property bool isComputed: activeNode && activeNode.isComputed
|
property bool isComputed: {
|
||||||
|
|
||||||
ToolTip.text: "Panorama Viewer"
|
|
||||||
text: MaterialIcons.panorama_sphere
|
|
||||||
font.pointSize: 16
|
|
||||||
padding: 0
|
|
||||||
Layout.minimumWidth: 0
|
|
||||||
checkable: true
|
|
||||||
checked: false
|
|
||||||
enabled: {
|
|
||||||
if(!activeNode)
|
if(!activeNode)
|
||||||
return false;
|
return false;
|
||||||
if(activeNode.attribute("method").value !== "manual")
|
if(activeNode.attribute("method").value !== "manual")
|
||||||
|
@ -855,6 +846,15 @@ FocusScope {
|
||||||
return false;
|
return false;
|
||||||
return inputAttrLink.node.isComputed;
|
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 : {
|
onCheckedChanged : {
|
||||||
if((displayHDR.checked || displayLensDistortionViewer.checked) && checked){
|
if((displayHDR.checked || displayLensDistortionViewer.checked) && checked){
|
||||||
displayHDR.checked = false;
|
displayHDR.checked = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue