1 | // Copyright (C) 2017 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QQUICKMENUBARITEM_P_H |
5 | #define |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <QtQuickTemplates2/private/qquickabstractbutton_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class ; |
23 | class ; |
24 | class ; |
25 | |
26 | class Q_QUICKTEMPLATES2_PRIVATE_EXPORT : public QQuickAbstractButton |
27 | { |
28 | Q_OBJECT |
29 | Q_PROPERTY(QQuickMenuBar *menuBar READ menuBar NOTIFY menuBarChanged FINAL) |
30 | Q_PROPERTY(QQuickMenu *menu READ menu WRITE setMenu NOTIFY menuChanged FINAL) |
31 | Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL) |
32 | QML_NAMED_ELEMENT(MenuBarItem) |
33 | QML_ADDED_IN_VERSION(2, 3) |
34 | |
35 | public: |
36 | explicit (QQuickItem *parent = nullptr); |
37 | |
38 | QQuickMenuBar *() const; |
39 | |
40 | QQuickMenu *() const; |
41 | void (QQuickMenu *); |
42 | |
43 | bool () const; |
44 | void (bool highlighted); |
45 | |
46 | Q_SIGNALS: |
47 | void (); |
48 | void (); |
49 | void (); |
50 | void (); |
51 | |
52 | protected: |
53 | bool (QEvent *event) override; |
54 | void (QKeyEvent *event) override; |
55 | void (QKeyEvent *event) override; |
56 | |
57 | void (const QRectF &newGeometry, const QRectF &oldGeometry) override; |
58 | |
59 | QFont () const override; |
60 | |
61 | #if QT_CONFIG(accessibility) |
62 | QAccessible::Role () const override; |
63 | #endif |
64 | |
65 | private: |
66 | Q_DISABLE_COPY() |
67 | Q_DECLARE_PRIVATE(QQuickMenuBarItem) |
68 | }; |
69 | |
70 | QT_END_NAMESPACE |
71 | |
72 | QML_DECLARE_TYPE(QQuickMenuBarItem) |
73 | |
74 | #endif // QQUICKMENUBARITEM_P_H |
75 | |