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 QQUICKMENUITEM_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 | |
25 | class Q_QUICKTEMPLATES2_PRIVATE_EXPORT : public QQuickAbstractButton |
26 | { |
27 | Q_OBJECT |
28 | Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL) |
29 | // 2.3 (Qt 5.10) |
30 | Q_PROPERTY(QQuickItem *arrow READ arrow WRITE setArrow NOTIFY arrowChanged FINAL REVISION(2, 3)) |
31 | Q_PROPERTY(QQuickMenu *menu READ menu NOTIFY menuChanged FINAL REVISION(2, 3)) |
32 | Q_PROPERTY(QQuickMenu *subMenu READ subMenu NOTIFY subMenuChanged FINAL REVISION(2, 3)) |
33 | Q_CLASSINFO("DeferredPropertyNames" , "arrow,background,contentItem,indicator" ) |
34 | QML_NAMED_ELEMENT(MenuItem) |
35 | QML_ADDED_IN_VERSION(2, 0) |
36 | |
37 | public: |
38 | explicit (QQuickItem *parent = nullptr); |
39 | |
40 | bool () const; |
41 | void (bool highlighted); |
42 | |
43 | // 2.3 (Qt 5.10) |
44 | QQuickItem *() const; |
45 | void (QQuickItem *arrow); |
46 | |
47 | QQuickMenu *() const; |
48 | QQuickMenu *() const; |
49 | |
50 | Q_SIGNALS: |
51 | void (); |
52 | void (); |
53 | // 2.3 (Qt 5.10) |
54 | Q_REVISION(2, 3) void (); |
55 | Q_REVISION(2, 3) void (); |
56 | Q_REVISION(2, 3) void (); |
57 | |
58 | protected: |
59 | void () override; |
60 | |
61 | QFont () const override; |
62 | |
63 | #if QT_CONFIG(accessibility) |
64 | QAccessible::Role () const override; |
65 | #endif |
66 | |
67 | private: |
68 | Q_DISABLE_COPY() |
69 | Q_DECLARE_PRIVATE(QQuickMenuItem) |
70 | }; |
71 | |
72 | QT_END_NAMESPACE |
73 | |
74 | QML_DECLARE_TYPE(QQuickMenuItem) |
75 | |
76 | #endif // QQUICKMENUITEM_P_H |
77 | |