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 QQUICKOVERLAY_P_P_H |
5 | #define QQUICKOVERLAY_P_P_H |
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/qquickoverlay_p.h> |
19 | |
20 | #include <QtQuick/private/qquickitem_p.h> |
21 | #include <QtQuick/private/qquickitemchangelistener_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | class ; |
26 | |
27 | class Q_AUTOTEST_EXPORT QQuickOverlayPrivate : public QQuickItemPrivate, |
28 | public QQuickItemChangeListener |
29 | { |
30 | public: |
31 | Q_DECLARE_PUBLIC(QQuickOverlay) |
32 | |
33 | static QQuickOverlayPrivate *get(QQuickOverlay *overlay) |
34 | { |
35 | return overlay->d_func(); |
36 | } |
37 | |
38 | bool startDrag(QEvent *event, const QPointF &pos); |
39 | bool handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target); |
40 | bool handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target); |
41 | bool handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target); |
42 | |
43 | bool handleMouseEvent(QQuickItem *source, QMouseEvent *event, QQuickPopup *target = nullptr); |
44 | bool handleHoverEvent(QQuickItem *source, QHoverEvent *event, QQuickPopup *target = nullptr); |
45 | #if QT_CONFIG(quicktemplates2_multitouch) |
46 | bool handleTouchEvent(QQuickItem *source, QTouchEvent *event, QQuickPopup *target = nullptr); |
47 | #endif |
48 | |
49 | void (QQuickPopup *); |
50 | void (QQuickPopup *); |
51 | void (QQuickPopup *); |
52 | |
53 | QList<QQuickPopup *> () const; |
54 | QList<QQuickPopup *> stackingOrderDrawers() const; |
55 | |
56 | void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override; |
57 | |
58 | void updateGeometry(); |
59 | |
60 | QQmlComponent *modal = nullptr; |
61 | QQmlComponent *modeless = nullptr; |
62 | QList<QQuickPopup *> ; |
63 | // Store drawers as QQuickPopup instead of QQuickDrawer because they're no longer |
64 | // QQuickDrawer by the time removePopup is called. |
65 | QList<QQuickPopup *> allDrawers; |
66 | QPointer<QQuickPopup> ; |
67 | QPointer<QQuickItem> lastActiveFocusItem; |
68 | }; |
69 | |
70 | QT_END_NAMESPACE |
71 | |
72 | #endif // QQUICKOVERLAY_P_P_H |
73 | |