summaryrefslogtreecommitdiffstats
path: root/src/controls/MenuBar.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-10-09 14:58:03 +0200
committerUlf Hermann <ulf.hermann@qt.io>2019-10-20 19:15:57 +0200
commitbdac502eadd746ee101b95e8d546b6bb754afdeb (patch)
treeb5d02d7094ef727ac4ede73e232740d9c72fb0bb /src/controls/MenuBar.qml
parent158b7dafcb21b6f8816841636afba13ebde1c62a (diff)
Adapt to new Connections syntax
Change-Id: I299baf89f2530250a333736bb31f4ae470610176 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/controls/MenuBar.qml')
-rw-r--r--src/controls/MenuBar.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml
index 2628d0643..78fd7cc7e 100644
--- a/src/controls/MenuBar.qml
+++ b/src/controls/MenuBar.qml
@@ -291,7 +291,7 @@ MenuBarPrivate {
Connections {
target: __menuItem
- onAboutToHide: {
+ function onAboutToHide() {
if (d.openedMenuIndex === index) {
d.openMenuAtIndex(-1)
menuMouseArea.hoveredItem = null
@@ -301,7 +301,7 @@ MenuBarPrivate {
Connections {
target: __menuItem.__action
- onTriggered: d.openMenuAtIndex(__menuItemIndex)
+ function onTriggered() { d.openMenuAtIndex(__menuItemIndex) }
}
Component.onCompleted: {