font: root.platformStyle.itemFont
}
Component.onCompleted: {
+ console.debug("SelectionDialog delegate ",name,file)
try {
// Legacy. "name" used to be the role which was used by delegate
itemText.text = name
flickableItem: selectionListView
platformStyle.inverted: true
}
- onModelChanged: selectionContent.listViewHeight = model.count * platformStyle.itemHeight
+ onCountChanged: selectionContent.listViewHeight = (typeof model.count === 'undefined' ? model.length : model.count) * platformStyle.itemHeight
+ onModelChanged: selectionContent.listViewHeight = (typeof model.count === 'undefined' ? model.length : model.count) * platformStyle.itemHeight
}
}