[DeviceDelegate] Improve interaction with overflow menu
* Right-align relative to menu button * Highlight button while menu is open * Open on press rather than on click like a toolbar menu
This commit is contained in:
parent
a6c8498e9b
commit
4320789a04
1 changed files with 4 additions and 3 deletions
|
@ -128,13 +128,14 @@ PlasmaComponents.ListItem
|
|||
PlasmaComponents3.ToolButton {
|
||||
id: overflowMenu
|
||||
icon.name: "application-menu"
|
||||
checked: menu.status === PlasmaComponents.DialogStatus.Open
|
||||
|
||||
onClicked: {
|
||||
menu.open(overflowMenu, overflowMenu.height)
|
||||
}
|
||||
onPressed: menu.openRelative()
|
||||
|
||||
PlasmaComponents.ContextMenu {
|
||||
id: menu
|
||||
visualParent: overflowMenu
|
||||
placement: PlasmaCore.Types.BottomPosedLeftAlignedPopup
|
||||
|
||||
//Share
|
||||
PlasmaComponents.MenuItem
|
||||
|
|
Loading…
Reference in a new issue