Fix QML warnings

This commit is contained in:
Zander Otavka 2016-07-18 13:09:32 -07:00
parent 492f7e0c29
commit b8398944ac

View file

@ -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;