Newer
Older
//Adjusting the height of the line, taking into account that the second element from the end may be the last
{
if(index+1 == currentIndex) return heightListElement + bottomIntervalListElement
else return heightListElement + intervalListElement
}
if (index == count - 1) return heightListElement + bottomIntervalListElement
return heightListElement + intervalListElement
}
else return 0
contentItem: Text {
id:textDelegateComboBox
anchors.fill: parent
anchors.leftMargin: popup.visible ? sidePaddingActive : sidePaddingNormal
font:dapComboBox.font
text: if(index != currentIndex)
return modelData;
else return ""
//Indent from the bottom edge or the next line that will not stand out when you hover over the mouse
{
if(index+1 == currentIndex) return bottomIntervalListElement
else return intervalListElement
}
if (index == count - 1) return bottomIntervalListElement
highlighted: parent.highlightedIndex === index
}
}