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