mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
16 lines
476 B
QML
16 lines
476 B
QML
// ===================================================================
|
|
// Menu which supports `ListView`.
|
|
// ===================================================================
|
|
|
|
AbstractDropDownMenu {
|
|
property int entryHeight
|
|
property int maxMenuHeight
|
|
|
|
function _computeHeight () {
|
|
var model = _content[0].model
|
|
var height = model.count * entryHeight
|
|
return (maxMenuHeight !== undefined && height > maxMenuHeight)
|
|
? maxMenuHeight
|
|
: height
|
|
}
|
|
}
|