Fixing bug with property for comboxes

This commit is contained in:
Adsooi 2020-12-27 20:12:14 +01:00
parent f30bea5006
commit cb8ccb1c1c

View file

@ -301,6 +301,7 @@ ListView {
height: visible ? implicitHeight : 0 height: visible ? implicitHeight : 0
width: parent.width width: parent.width
text: parent.label text: parent.label
checked: visible ? objEditor.obj[modelData[0]] : false checked: visible ? objEditor.obj[modelData[0]] : false
onClicked: { onClicked: {
objEditor.obj[modelData[0]] = this.checked objEditor.obj[modelData[0]] = this.checked
@ -312,7 +313,7 @@ ListView {
ComboBoxSetting { ComboBoxSetting {
id: customPropCombo id: customPropCombo
width: dlgProperties.width width: dlgProperties.width
height: visible ? implicitHeight : 0 height: visible ? 30 : 0
label: parent.label label: parent.label
// True to select an object of type, false for enums. // True to select an object of type, false for enums.
property bool selectObjMode: paramTypeIn(modelData[1], ['ObjectType']) property bool selectObjMode: paramTypeIn(modelData[1], ['ObjectType'])