1 | // Copyright (C) 2020 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 QQUICKMENUBAR_P_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/qquickmenubar_p.h> |
19 | #include <QtQuickTemplates2/private/qquickcontainer_p_p.h> |
20 | |
21 | #include <QtCore/qpointer.h> |
22 | #include <QtGui/qpa/qplatformmenu.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QQmlComponent; |
27 | class ; |
28 | |
29 | class Q_QUICKTEMPLATES2_EXPORT : public QQuickContainerPrivate |
30 | { |
31 | public: |
32 | Q_DECLARE_PUBLIC(QQuickMenuBar) |
33 | |
34 | static QQuickMenuBarPrivate *(QQuickMenuBar *) |
35 | { |
36 | return menuBar->d_func(); |
37 | } |
38 | |
39 | QQmlListProperty<QQuickMenu> (); |
40 | QQmlListProperty<QObject> (); |
41 | |
42 | QQuickItem *(); |
43 | QQuickMenuBarItem *(QQuickMenu *); |
44 | |
45 | void (); |
46 | void (); |
47 | void (int index); |
48 | |
49 | void (QQuickMenuBarItem *item); |
50 | void (); |
51 | void (); |
52 | |
53 | void (); |
54 | void (); |
55 | void (QQuickMenu *); |
56 | |
57 | void (int index, QQuickMenu *, QQuickMenuBarItem *delegateItem); |
58 | QQuickMenu *(int index); |
59 | void (QQuickMenu *); |
60 | void (QQuickMenu *); |
61 | void (QQuickMenuBarItem *); |
62 | |
63 | QWindow *() const; |
64 | int (QQuickMenu *) const; |
65 | |
66 | QPlatformMenuBar *nativeHandle() const; |
67 | bool () const; |
68 | bool (const QQuickMenu *) const; |
69 | void (); |
70 | void (); |
71 | void (); |
72 | |
73 | qreal () const override; |
74 | qreal () const override; |
75 | |
76 | void (QQuickItem *item) override; |
77 | void (QQuickItem *item) override; |
78 | |
79 | static void (QQmlListProperty<QObject> *prop, QObject *obj); |
80 | |
81 | static void (QQmlListProperty<QQuickMenu> *prop, QQuickMenu *obj); |
82 | static qsizetype (QQmlListProperty<QQuickMenu> *prop); |
83 | static QQuickMenu *(QQmlListProperty<QQuickMenu> *prop, qsizetype index); |
84 | static void (QQmlListProperty<QQuickMenu> *prop); |
85 | |
86 | QPalette () const override; |
87 | |
88 | bool = false; |
89 | bool = false; |
90 | bool = false; |
91 | QQmlComponent * = nullptr; |
92 | QPointer<QQuickMenuBarItem> ; |
93 | QPointer<QQuickItem> ; |
94 | |
95 | private: |
96 | std::unique_ptr<QPlatformMenuBar> handle; |
97 | }; |
98 | |
99 | QT_END_NAMESPACE |
100 | |
101 | #endif // QQUICKMENUBAR_P_P_H |
102 | |