diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-10-02 12:43:06 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-10-02 12:43:48 +0200 |
commit | 63d832bcae98104bf071096605fc27a59a52254c (patch) | |
tree | ba2fd42487c5889aad0b80aaddb0f304a690b561 /src/controls/qquickmenu_p.h | |
parent | 53ff51b61a3ecfc485d7c8ec6d9a5b61d2791719 (diff) | |
parent | a21a33fe79e82a7bd3471612b46106ac1343648f (diff) | |
download | qtquickcontrols-63d832bcae98104bf071096605fc27a59a52254c.tar.gz |
Merge remote-tracking branch 'origin/5.5' into 5.6
Change-Id: Ie26c941c33fdd8baab49dc13b84d02e2b83af5e1
Diffstat (limited to 'src/controls/qquickmenu_p.h')
-rw-r--r-- | src/controls/qquickmenu_p.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/controls/qquickmenu_p.h b/src/controls/qquickmenu_p.h index bc16328e..1c51fe71 100644 --- a/src/controls/qquickmenu_p.h +++ b/src/controls/qquickmenu_p.h @@ -89,10 +89,10 @@ public: Q_INVOKABLE void __popup(const QRectF &targetRect, int atItemIndex = -1, MenuType menuType = DefaultMenu); public Q_SLOTS: - void __closeMenu(); void __dismissMenu(); - void __destroyMenuPopup(); - void __destroyAllMenuPopups(); + + void __closeAndDestroy(); + void __dismissAndDestroy(); Q_SIGNALS: void itemsChanged(); @@ -142,11 +142,17 @@ public: QRect popupGeometry() const; + void prepareItemTrigger(QQuickMenuItem *); + void concludeItemTrigger(QQuickMenuItem *); + void destroyMenuPopup(); + void destroyAllMenuPopups(); + protected Q_SLOTS: void updateSelectedIndex(); void setMenuContentItem(QQuickItem *); void setPopupVisible(bool); + void hideMenu(); void clearPopupWindow(); void updateText(); @@ -189,6 +195,7 @@ private: qreal m_xOffset; qreal m_yOffset; QFont m_font; + int m_triggerCount; }; QT_END_NAMESPACE |