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 QQUICKMENU_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 <QtCore/qlist.h> |
19 | #include <QtCore/qpointer.h> |
20 | |
21 | #include <QtQuickTemplates2/private/qquickmenu_p.h> |
22 | #include <QtQuickTemplates2/private/qquickpopup_p_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | class QQuickAction; |
27 | class QQmlComponent; |
28 | class QQmlObjectModel; |
29 | class ; |
30 | |
31 | class Q_QUICKTEMPLATES2_PRIVATE_EXPORT : public QQuickPopupPrivate |
32 | { |
33 | public: |
34 | Q_DECLARE_PUBLIC(QQuickMenu) |
35 | |
36 | (); |
37 | |
38 | static QQuickMenuPrivate *(QQuickMenu *) |
39 | { |
40 | return menu->d_func(); |
41 | } |
42 | |
43 | void (); |
44 | |
45 | QQuickItem *(int index) const; |
46 | void (int index, QQuickItem *item); |
47 | void (int from, int to); |
48 | void (int index, QQuickItem *item); |
49 | |
50 | QQuickItem *(); |
51 | void (); |
52 | |
53 | QQuickItem *(QQuickMenu *); |
54 | QQuickItem *(QQuickAction *action); |
55 | |
56 | void (QQuickItem *item); |
57 | void (); |
58 | |
59 | void (QQuickItem *item, QQuickItem *child) override; |
60 | void (QQuickItem *item) override; |
61 | void (QQuickItem *item, QQuickItem *parent) override; |
62 | void (QQuickItem *item) override; |
63 | void (QQuickItem *, QQuickGeometryChange change, const QRectF &diff) override; |
64 | |
65 | QQuickPopupPositioner *() override; |
66 | bool () override; |
67 | bool () override; |
68 | bool (QQuickItem *item, const QPointF &point) const override; |
69 | |
70 | void (); |
71 | void (); |
72 | void (); |
73 | |
74 | QQuickMenu *() const; |
75 | void (QQuickMenu *parent); |
76 | void (); |
77 | |
78 | void (QKeyEvent *event); |
79 | |
80 | void (); |
81 | void (); |
82 | |
83 | void (int index, Qt::FocusReason reason); |
84 | bool (); |
85 | bool (); |
86 | |
87 | QQuickMenuItem *() const; |
88 | |
89 | static void (QQmlListProperty<QObject> *prop, QObject *obj); |
90 | static qsizetype (QQmlListProperty<QObject> *prop); |
91 | static QObject *(QQmlListProperty<QObject> *prop, qsizetype index); |
92 | static void (QQmlListProperty<QObject> *prop); |
93 | |
94 | QPalette () const override; |
95 | |
96 | bool = false; |
97 | int = 0; |
98 | int = -1; |
99 | qreal = 0; |
100 | QPointer<QQuickMenu> ; |
101 | QPointer<QQuickMenuItem> ; |
102 | QQuickItem * = nullptr; // TODO: cleanup |
103 | QList<QObject *> ; |
104 | QQmlObjectModel *; |
105 | QQmlComponent * = nullptr; |
106 | QString ; |
107 | QQuickIcon ; |
108 | }; |
109 | |
110 | QT_END_NAMESPACE |
111 | |
112 | #endif // QQUICKMENU_P_P_H |
113 | |