Dialog and menu positioning
This commit is contained in:
parent
b0c7071c56
commit
2ff14cfaa9
6 changed files with 19 additions and 6 deletions
|
@ -129,7 +129,7 @@ Item {
|
|||
});
|
||||
}
|
||||
|
||||
function showSelection(items, title, selectedIndex) {
|
||||
function showSelection(items, title, selectedIndex, activatedFromMenu) {
|
||||
loadPage('SelectionDialog.qml', {
|
||||
title: title,
|
||||
callback: function (index, item) {
|
||||
|
@ -143,6 +143,7 @@ Item {
|
|||
return result;
|
||||
}(),
|
||||
selectedIndex: selectedIndex,
|
||||
activatedFromMenu: activatedFromMenu ? activatedFromMenu : false
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -256,6 +257,7 @@ Item {
|
|||
|
||||
text: pgst.menuButtonLabel
|
||||
icon: pgst.menuButtonIcon
|
||||
visible: enabled || !platform.hideDisabledMenu
|
||||
|
||||
enabled: pgst.hasMenuButton
|
||||
onClicked: pgst.children[pgst.children.length-1].menuButtonClicked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue