aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickmenu_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-07-12 15:13:26 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-07-13 11:00:02 +0000
commit01dbd3a8ed6187ec9a7ff2bb61031c3291b24d97 (patch)
tree1bffd776e375946050dfd395197ef58203f86f98 /src/quicktemplates2/qquickmenu_p_p.h
parent141fdff2c59eac4ded9581dd7c6b606bb91197b3 (diff)
QQuickMenu: resolve the parent item
A cascading sub-menu is parented to the menu item in its parent menu, but a non-cascading sub-menu is parented to the parent menu's parent item to be able to have the sub-menu visible while the parent menu is hidden (non-cascading menus are opened and closed one by one). Based on these conditions, resolve the parent item automatically instead of doing it by hand in openSubMenu(). Change-Id: I5dd38ee0978604cd604dabf6f40ac4fb5f3eebbe Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickmenu_p_p.h')
-rw-r--r--src/quicktemplates2/qquickmenu_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickmenu_p_p.h b/src/quicktemplates2/qquickmenu_p_p.h
index 7a1c631f..b8da1764 100644
--- a/src/quicktemplates2/qquickmenu_p_p.h
+++ b/src/quicktemplates2/qquickmenu_p_p.h
@@ -104,6 +104,7 @@ public:
void openSubMenu(QQuickMenuItem *item, bool activate);
void setParentMenu(QQuickMenu *parent);
+ void resolveParentItem();
void startHoverTimer();
void stopHoverTimer();