mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
feat(ui/modules/Common/Form/ComboBox): remove getFlattenedModel function
This commit is contained in:
parent
c88865df00
commit
fc101bd878
2 changed files with 2 additions and 6 deletions
|
|
@ -25,8 +25,3 @@ function getEntryIcon () {
|
|||
var iconRole = comboBox.iconRole
|
||||
return (iconRole.length && item.flattenedModel[iconRole]) || ''
|
||||
}
|
||||
|
||||
function getFlattenedModel () {
|
||||
return comboBox.textRole.length &&
|
||||
(typeof modelData !== 'undefined' ? modelData : model)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ ComboBox {
|
|||
delegate: ItemDelegate {
|
||||
id: item
|
||||
|
||||
readonly property var flattenedModel: Logic.getFlattenedModel()
|
||||
readonly property var flattenedModel: comboBox.textRole.length &&
|
||||
(typeof modelData !== 'undefined' ? modelData : model)
|
||||
|
||||
hoverEnabled: true
|
||||
width: comboBox.width
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue