aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickmenu_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-06-03 10:16:42 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-07-26 14:11:39 +0000
commit66faa149db5d7b0a31db98b792c5202b8f33bf8a (patch)
tree4f757ec3ddfe6ab344269c43aa9ae44200df2a98 /src/quicktemplates2/qquickmenu_p_p.h
parent9484e471324560ffd189ed7bd59ac182f0793b31 (diff)
Introduce MenuBar
MenuBar is an ordinary Item. It can be located basically anywhere, but the idea is to introduce a new ApplicationWindow::menuBar property in a follow-up commit. Currently the example snippets are using the header property. [ChangeLog][Controls][MenuBar] Introduced a MenuBar control. Task-number: QTBUG-60350 Change-Id: Ie66dc457a3d8edbe8362fab2a591dc49442c95e2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickmenu_p_p.h b/src/quicktemplates2/qquickmenu_p_p.h
index 9f3d66a2..0c8ffb4d 100644
--- a/src/quicktemplates2/qquickmenu_p_p.h
+++ b/src/quicktemplates2/qquickmenu_p_p.h
@@ -106,12 +106,14 @@ public:
void setParentMenu(QQuickMenu *parent);
void resolveParentItem();
+ void propagateKeyEvent(QKeyEvent *event);
+
void startHoverTimer();
void stopHoverTimer();
void setCurrentIndex(int index, Qt::FocusReason reason);
- void activateNextItem();
- void activatePreviousItem();
+ bool activateNextItem();
+ bool activatePreviousItem();
static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
static int contentData_count(QQmlListProperty<QObject> *prop);