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