mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:58:28 +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 comboBox;
|
||||||
property var checkBox;
|
property var checkBox;
|
||||||
onTextInputChanged: {
|
onTextInputChanged: {
|
||||||
if (textInput) {
|
if (textInput && textInput.text !== undefined) {
|
||||||
textField.text = textInput.text;
|
textField.text = textInput.text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onComboBoxChanged: {
|
onComboBoxChanged: {
|
||||||
if (comboBox) {
|
if (comboBox && comboBox.index !== undefined) {
|
||||||
comboBoxField.currentIndex = comboBox.index;
|
comboBoxField.currentIndex = comboBox.index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onCheckBoxChanged: {
|
onCheckBoxChanged: {
|
||||||
if (checkBox) {
|
if (checkBox && checkBox.checked !== undefined) {
|
||||||
checkBoxField.checked = checkBox.checked;
|
checkBoxField.checked = checkBox.checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,10 +147,9 @@ ModalWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Item {
|
||||||
id: extraInputs;
|
id: extraInputs;
|
||||||
visible: Boolean(root.checkBox || root.comboBox);
|
visible: Boolean(root.checkBox || root.comboBox);
|
||||||
spacing: hifi.dimensions.contentSpacing.x;
|
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left;
|
left: parent.left;
|
||||||
right: parent.right;
|
right: parent.right;
|
||||||
|
|
Loading…
Reference in a new issue