summaryrefslogtreecommitdiff
path: root/src/controls/Menu.qml
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-03-30 19:15:34 +0200
committerGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-04-16 12:13:17 +0000
commit13aad0cf03170cde6dd147f9d2ce460bac98d712 (patch)
tree3b5cc24d9c6e4095ce2c0d0f88fce4e04619f4dc /src/controls/Menu.qml
parent5da5925ca6c676a8b36ebd863267b04906ef57d2 (diff)
downloadqtquickcontrols-13aad0cf03170cde6dd147f9d2ce460bac98d712.tar.gz
Menu: Add aboutToShow, aboutToHide signals
These do the same as for QMenu, and are emitted right before the pop-up is shown or hidden. On Mac, these signals are emitted by the QPA plugin and relayed by QQuickMenu. Task-number: QTBUG-40576 Change-Id: I59113d8d9cc8c5b3140f4f552772d33dd0b6e138 Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Diffstat (limited to 'src/controls/Menu.qml')
-rw-r--r--src/controls/Menu.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/Menu.qml b/src/controls/Menu.qml
index b85008eb..7334c28c 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -150,7 +150,7 @@ MenuPrivate {
/*! \internal */
property int __currentIndex: -1
/*! \internal */
- on__MenuClosed: __currentIndex = -1
+ onAboutToHide: __currentIndex = -1
on__MenuPopupDestroyed: contentLoader.active = false
onPopupVisibleChanged: {
if (__popupVisible)