[ui] Viewer2D: minor warning fixes

This commit is contained in:
Fabien Castan 2020-01-27 12:47:10 +01:00
parent 18ab1d1793
commit 9bcad1ca4a

View file

@ -179,8 +179,8 @@ FocusScope {
// show which depthmap node is active
Label {
id: depthMapNodeName
visible: imageType.type != "image"
text: _reconstruction.depthMap.label
visible: (_reconstruction.depthMap != undefined) && (imageType.type != "image")
text: (_reconstruction.depthMap != undefined ? _reconstruction.depthMap.label : "")
font.pointSize: 8
horizontalAlignment: TextInput.AlignLeft
@ -264,6 +264,7 @@ FocusScope {
property string type: types[currentIndex]
model: types
enabled: _reconstruction.depthMap != undefined
}
MaterialToolButton {