brmbarv3 ItemEdit: Allow keyboard text entry

This commit is contained in:
Petr Baudis 2012-10-16 22:42:37 +02:00
parent c81189889e
commit 906fc75f3c
2 changed files with 35 additions and 20 deletions

View file

@ -21,7 +21,7 @@ Item {
loadPageByAcct(acct)
return
}
loadPage("ItemEdit", { name: acct["name"], dbid: acct["id"] })
loadPage("ItemEdit", { dbid: acct["id"] })
}
}
@ -65,7 +65,7 @@ Item {
text: "Edit"
fontSize: 46
onButtonClick: {
loadPage("ItemEdit", { name: modelData.name, dbid: modelData.id })
loadPage("ItemEdit", { dbid: modelData.id })
}
}
}
@ -88,7 +88,7 @@ Item {
text: "Add Item"
fontSize: 60
onButtonClick: {
loadPage("ItemEdit", { name: "", dbid: "" })
loadPage("ItemEdit", { dbid: "" })
}
}