fix fix menu attr
This commit is contained in:
parent
09b73d7cb1
commit
21c16592dd
2 changed files with 6 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ PanelWindow {
|
|||
// Global x of the icon center (from mapToGlobal), used to position the panel
|
||||
required property real anchorX
|
||||
|
||||
signal closed()
|
||||
signal menuClosed()
|
||||
|
||||
color: "transparent"
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ PanelWindow {
|
|||
// Click outside the menu panel → dismiss
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: menuWindow.closed()
|
||||
onClicked: menuWindow.menuClosed()
|
||||
}
|
||||
|
||||
// Menu panel
|
||||
|
|
@ -67,7 +67,7 @@ PanelWindow {
|
|||
StackView {
|
||||
id: menuStack
|
||||
|
||||
width: currentItem ? currentItem.implicitWidth : 0
|
||||
width: currentItem ? currentItem.width : 0
|
||||
height: currentItem ? currentItem.implicitHeight : 0
|
||||
|
||||
// Push the root page once the stack is ready
|
||||
|
|
@ -92,7 +92,7 @@ PanelWindow {
|
|||
required property QsMenuHandle handle
|
||||
property bool isRoot: false
|
||||
|
||||
implicitWidth: 220
|
||||
width: 220
|
||||
topPadding: 4
|
||||
bottomPadding: 4
|
||||
spacing: 2
|
||||
|
|
@ -222,7 +222,7 @@ PanelWindow {
|
|||
}, StackView.Immediate);
|
||||
} else {
|
||||
entryItem.modelData.triggered();
|
||||
menuWindow.closed();
|
||||
menuWindow.menuClosed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue