Fix QML errors

This commit is contained in:
Atlante45 2017-09-12 15:49:49 -07:00
parent 9f2b0258e9
commit 2e84f48539
4 changed files with 15 additions and 8 deletions

View file

@ -651,7 +651,7 @@ ScrollingWindow {
}
onAccepted: {
if (acceptableInput && styleData.selected) {
if (!modifyEl(selection.currentIndex, text)) {
if (!treeView.modifyEl(treeView.selection.currentIndex, text)) {
text = styleData.value;
}
unfocusHelper.forceActiveFocus();

View file

@ -225,11 +225,4 @@ TreeView {
onClicked: {
selectionModel.setCurrentIndex(index, ItemSelectionModel.ClearAndSelect);
}
onActivated: {
var path = scriptsModel.data(index, 0x100)
if (path) {
loadScript(path)
}
}
}

View file

@ -375,6 +375,13 @@ ScrollingWindow {
TableViewColumn {
role: "display";
}
onActivated: {
var path = scriptsModel.data(index, 0x100)
if (path) {
loadScript(path)
}
}
}
HifiControls.VerticalSpacer {

View file

@ -426,6 +426,13 @@ Rectangle {
}
}
}
onActivated: {
var path = scriptsModel.data(index, 0x100)
if (path) {
loadScript(path)
}
}
}
Item {