mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 02:50:23 +02:00
Fix QML warnings
This commit is contained in:
parent
492f7e0c29
commit
b8398944ac
1 changed files with 4 additions and 5 deletions
|
@ -35,17 +35,17 @@ ModalWindow {
|
|||
property var comboBox;
|
||||
property var checkBox;
|
||||
onTextInputChanged: {
|
||||
if (textInput) {
|
||||
if (textInput && textInput.text !== undefined) {
|
||||
textField.text = textInput.text;
|
||||
}
|
||||
}
|
||||
onComboBoxChanged: {
|
||||
if (comboBox) {
|
||||
if (comboBox && comboBox.index !== undefined) {
|
||||
comboBoxField.currentIndex = comboBox.index;
|
||||
}
|
||||
}
|
||||
onCheckBoxChanged: {
|
||||
if (checkBox) {
|
||||
if (checkBox && checkBox.checked !== undefined) {
|
||||
checkBoxField.checked = checkBox.checked;
|
||||
}
|
||||
}
|
||||
|
@ -147,10 +147,9 @@ ModalWindow {
|
|||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
Item {
|
||||
id: extraInputs;
|
||||
visible: Boolean(root.checkBox || root.comboBox);
|
||||
spacing: hifi.dimensions.contentSpacing.x;
|
||||
anchors {
|
||||
left: parent.left;
|
||||
right: parent.right;
|
||||
|
|
Loading…
Reference in a new issue