mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-20 06:35:51 +02:00
callview: enable scrolling in elipsed buttons
GitLab: #697 Change-Id: I8edada01a7c1cbe4a67fa5c399509d71cd2b446a
This commit is contained in:
parent
929c6fc0bf
commit
e897a88baf
2 changed files with 7 additions and 4 deletions
|
@ -37,6 +37,7 @@ Control {
|
||||||
|
|
||||||
property alias overflowOpen: overflowButton.popup.visible
|
property alias overflowOpen: overflowButton.popup.visible
|
||||||
property bool subMenuOpen: false
|
property bool subMenuOpen: false
|
||||||
|
property real parentHeight
|
||||||
|
|
||||||
property real itemSpacing: 2
|
property real itemSpacing: 2
|
||||||
|
|
||||||
|
@ -549,7 +550,7 @@ Control {
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
implicitHeight: children[0].contentHeight
|
implicitHeight: (overflowButton.width + itemSpacing) * urgentOverflowListView.count
|
||||||
width: overflowButton.width
|
width: overflowButton.width
|
||||||
anchors.bottom: parent.top
|
anchors.bottom: parent.top
|
||||||
anchors.bottomMargin: itemSpacing
|
anchors.bottomMargin: itemSpacing
|
||||||
|
@ -581,14 +582,15 @@ Control {
|
||||||
popup: Popup {
|
popup: Popup {
|
||||||
y: overflowButton.height + itemSpacing
|
y: overflowButton.height + itemSpacing
|
||||||
width: overflowButton.width
|
width: overflowButton.width
|
||||||
implicitHeight: contentItem.implicitHeight
|
implicitHeight: Math.min(root.parentHeight - itemSpacing,
|
||||||
|
(overflowButton.width + itemSpacing) * overflowHiddenListView.count)
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
contentItem: JamiListView {
|
contentItem: JamiListView {
|
||||||
id: overflowHiddenListView
|
id: overflowHiddenListView
|
||||||
spacing: itemSpacing
|
spacing: itemSpacing
|
||||||
implicitHeight: contentHeight
|
implicitHeight: Math.min(contentHeight, parent.height)
|
||||||
interactive: false
|
interactive: true
|
||||||
model: overflowButton.popup.visible ?
|
model: overflowButton.popup.visible ?
|
||||||
overflowButton.delegateModel :
|
overflowButton.delegateModel :
|
||||||
null
|
null
|
||||||
|
|
|
@ -239,6 +239,7 @@ Item {
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 55
|
height: 55
|
||||||
|
parentHeight: root.height - 81
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
|
|
Loading…
Add table
Reference in a new issue