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
width: parent.width
text: parent.label
checked: visible ? objEditor.obj[modelData[0]] : false
onClicked: {
objEditor.obj[modelData[0]] = this.checked
@ -308,11 +309,11 @@ ListView {
objectListList.update()
}
}
ComboBoxSetting {
id: customPropCombo
width: dlgProperties.width
height: visible ? implicitHeight : 0
height: visible ? 30 : 0
label: parent.label
// True to select an object of type, false for enums.
property bool selectObjMode: paramTypeIn(modelData[1], ['ObjectType'])