HLoader as room delegates test

This commit is contained in:
miruka
2020-04-05 19:23:04 -04:00
parent eacd7f1f3e
commit 2cbedaa892
5 changed files with 44 additions and 11 deletions

View File

@@ -50,13 +50,13 @@ QtObject {
function onModelItemInserted(syncId, index, item) {
print("insert", syncId, index, item)
// print("insert", syncId, index, item)
ModelStore.get(syncId).insert(index, item)
}
function onModelItemFieldChanged(syncId, oldIndex, newIndex, field, value){
print("change", syncId, oldIndex, newIndex, field, value)
// print("change", syncId, oldIndex, newIndex, field, value)
const model = ModelStore.get(syncId)
model.setProperty(oldIndex, field, value)
@@ -65,7 +65,7 @@ QtObject {
function onModelItemDeleted(syncId, index) {
print("del", syncId, index)
// print("del", syncId, index)
ModelStore.get(syncId).remove(index)
}