Skip to content

Commit

Permalink
Open menu outside window
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Nov 16, 2024
1 parent 5304c68 commit 8e1ceb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 94 deletions.
7 changes: 7 additions & 0 deletions controls/com/vicr123/Contemporary/impl/ActionBarPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import com.vicr123.Contemporary
Popup {
id: root
clip: true
popupType: Popup.Window
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside

property Menu menu

Expand Down Expand Up @@ -165,6 +167,11 @@ Popup {
id: overlay
opacity: 0.7
color: "black"

MouseArea {
anchors.fill: parent
onPressed: root.close()
}
}

enter: Transition {
Expand Down
Loading

0 comments on commit 8e1ceb3

Please sign in to comment.