Commit fc101bd8 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/modules/Common/Form/ComboBox): remove `getFlattenedModel` function

parent c88865df
...@@ -25,8 +25,3 @@ function getEntryIcon () { ...@@ -25,8 +25,3 @@ function getEntryIcon () {
var iconRole = comboBox.iconRole var iconRole = comboBox.iconRole
return (iconRole.length && item.flattenedModel[iconRole]) || '' return (iconRole.length && item.flattenedModel[iconRole]) || ''
} }
function getFlattenedModel () {
return comboBox.textRole.length &&
(typeof modelData !== 'undefined' ? modelData : model)
}
...@@ -74,7 +74,8 @@ ComboBox { ...@@ -74,7 +74,8 @@ ComboBox {
delegate: ItemDelegate { delegate: ItemDelegate {
id: item id: item
readonly property var flattenedModel: Logic.getFlattenedModel() readonly property var flattenedModel: comboBox.textRole.length &&
(typeof modelData !== 'undefined' ? modelData : model)
hoverEnabled: true hoverEnabled: true
width: comboBox.width width: comboBox.width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment