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 QQUICKPOPUP_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/qquickpopup_p.h> |
19 | #include <QtQuickTemplates2/private/qquickcontrol_p.h> |
20 | #include <QtQuickTemplates2/private/qquicktheme_p.h> |
21 | |
22 | #include <QtCore/private/qobject_p.h> |
23 | #include <QtQuick/qquickitem.h> |
24 | #include <QtQuick/private/qquickitemchangelistener_p.h> |
25 | #include <QtQuick/private/qquicktransitionmanager_p_p.h> |
26 | #include <QtQuick/private/qquickitem_p.h> |
27 | |
28 | QT_BEGIN_NAMESPACE |
29 | |
30 | class QQuickTransition; |
31 | class QQuickTransitionManager; |
32 | class ; |
33 | class ; |
34 | class ; |
35 | class QQuickPopupPrivate; |
36 | class ; |
37 | |
38 | class Q_QUICKTEMPLATES2_PRIVATE_EXPORT : public QQuickTransitionManager |
39 | { |
40 | public: |
41 | (QQuickPopupPrivate *); |
42 | |
43 | void (); |
44 | void (); |
45 | |
46 | protected: |
47 | void () override; |
48 | |
49 | private: |
50 | QQuickPopupPrivate * = nullptr; |
51 | }; |
52 | |
53 | class Q_QUICKTEMPLATES2_PRIVATE_EXPORT |
54 | : public QObjectPrivate |
55 | , public QQuickItemChangeListener |
56 | , public QQuickPaletteProviderPrivateBase<QQuickPopup, QQuickPopupPrivate> |
57 | { |
58 | public: |
59 | Q_DECLARE_PUBLIC(QQuickPopup) |
60 | |
61 | (); |
62 | |
63 | static QQuickPopupPrivate *(QQuickPopup *) |
64 | { |
65 | return popup->d_func(); |
66 | } |
67 | |
68 | QQmlListProperty<QObject> (); |
69 | QQmlListProperty<QQuickItem> (); |
70 | |
71 | void (); |
72 | void (); |
73 | bool (const QPointF &pos, QQuickPopup::ClosePolicy flags); |
74 | |
75 | bool (const QPointF &scenePos) const; |
76 | |
77 | #if QT_CONFIG(quicktemplates2_multitouch) |
78 | virtual bool (const QTouchEvent::TouchPoint &point); |
79 | #endif |
80 | virtual bool (QQuickItem *item, const QPointF &point) const; |
81 | |
82 | virtual bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp); |
83 | virtual bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp); |
84 | virtual bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp); |
85 | virtual void handleUngrab(); |
86 | |
87 | bool handleMouseEvent(QQuickItem *item, QMouseEvent *event); |
88 | bool handleHoverEvent(QQuickItem *item, QHoverEvent *event); |
89 | #if QT_CONFIG(quicktemplates2_multitouch) |
90 | bool handleTouchEvent(QQuickItem *item, QTouchEvent *event); |
91 | #endif |
92 | |
93 | void (); |
94 | |
95 | void (); |
96 | void (); |
97 | void (); |
98 | void (const QPalette& parentPalette); |
99 | virtual void (); |
100 | virtual void (); |
101 | virtual void (); |
102 | |
103 | virtual bool (); |
104 | virtual bool (); |
105 | virtual void (); |
106 | virtual void (); |
107 | |
108 | virtual void (); |
109 | |
110 | QMarginsF () const; |
111 | |
112 | void (qreal value, bool reset = false); |
113 | void (qreal value, bool reset = false); |
114 | void (qreal value, bool reset = false); |
115 | void (qreal value, bool reset = false); |
116 | |
117 | QQuickPopupAnchors *(); |
118 | virtual QQuickPopupPositioner *(); |
119 | |
120 | void (QQuickWindow *window); |
121 | void (QQuickItem *item) override; |
122 | |
123 | QPalette () const override; |
124 | |
125 | enum { |
126 | , , |
127 | }; |
128 | |
129 | static const QQuickPopup::ClosePolicy ; |
130 | |
131 | bool = false; |
132 | bool = false; |
133 | bool = false; |
134 | bool = false; |
135 | bool = false; |
136 | bool = true; |
137 | bool = false; |
138 | bool = false; |
139 | bool = false; |
140 | bool = false; |
141 | bool = false; |
142 | bool = false; |
143 | bool = false; |
144 | bool = false; |
145 | bool = false; |
146 | bool = false; |
147 | bool = true; |
148 | bool = true; |
149 | bool = true; |
150 | bool = true; |
151 | bool = false; |
152 | bool = true; |
153 | bool = false; |
154 | bool = false; |
155 | bool = false; |
156 | bool = false; |
157 | int = -1; |
158 | qreal = 0; |
159 | qreal = 0; |
160 | qreal = 0; |
161 | qreal = 0; |
162 | qreal = -1; |
163 | qreal = 0; |
164 | qreal = 0; |
165 | qreal = 0; |
166 | qreal = 0; |
167 | QPointF ; |
168 | TransitionState = NoTransition; |
169 | QQuickPopup::ClosePolicy = DefaultClosePolicy; |
170 | QQuickItem * = nullptr; |
171 | QQuickItem * = nullptr; |
172 | QPointer<QQuickWindow> ; |
173 | QQuickTransition * = nullptr; |
174 | QQuickTransition * = nullptr; |
175 | QQuickPopupItem * = nullptr; |
176 | QQuickPopupPositioner * = nullptr; |
177 | QList<QQuickStateAction> ; |
178 | QList<QQuickStateAction> ; |
179 | QQuickPopupTransitionManager ; |
180 | QQuickPopupAnchors * = nullptr; |
181 | qreal = 0; |
182 | qreal = 0; |
183 | |
184 | friend class QQuickPopupTransitionManager; |
185 | }; |
186 | |
187 | QT_END_NAMESPACE |
188 | |
189 | #endif // QQUICKPOPUP_P_P_H |
190 | |