added outputImageTypes in node desc to update the viewer2D imageType combo box when double clicking a node

This commit is contained in:
Loïc Vital 2022-09-16 17:01:07 +02:00 committed by Fabien Castan
parent ab0e132121
commit fc5ab540f5
5 changed files with 18 additions and 1 deletions

View file

@ -165,6 +165,10 @@ FocusScope {
return "";
}
function setImageTypes(types) {
imageType.types = types;
}
// context menu
property Component contextMenu: Menu {
MenuItem {
@ -998,7 +1002,7 @@ FocusScope {
Layout.preferredWidth: 6.0 * Qt.application.font.pixelSize
flat: true
property var types: ["image", "depth", "sim"]
property var types: ["image"]
property string type: enabled ? types[currentIndex] : types[0]
model: types