fix(StatusChatToolBar): ensure context menu as proper position
Also expose action buttons for more custom control.
This commit is contained in:
parent
ce91db10fe
commit
bd280acd83
|
@ -12,6 +12,8 @@ Rectangle {
|
||||||
color: Theme.palette.statusAppLayout.backgroundColor
|
color: Theme.palette.statusAppLayout.backgroundColor
|
||||||
|
|
||||||
property alias chatInfoButton: statusChatInfoButton
|
property alias chatInfoButton: statusChatInfoButton
|
||||||
|
property alias menuButton: menuButton
|
||||||
|
property alias notificationButton: notificationButton
|
||||||
property int notificationCount: 0
|
property int notificationCount: 0
|
||||||
|
|
||||||
property Component popupMenu
|
property Component popupMenu
|
||||||
|
@ -35,6 +37,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
id: actionButtons
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -52,7 +55,7 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
statusChatToolBar.menuButtonClicked()
|
statusChatToolBar.menuButtonClicked()
|
||||||
highlighted = true
|
highlighted = true
|
||||||
popupMenuSlot.item.popup()
|
popupMenuSlot.item.popup(actionButtons.x + menuButton.width - popupMenuSlot.item.width, menuButton.height + 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue