Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickoverlay_p_p.h
Go to the documentation of this file.
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#include <QtCore/qpointer.h>
24
26
27class QQuickPopup;
28
31{
32public:
33 Q_DECLARE_PUBLIC(QQuickOverlay)
34
36 {
37 return overlay->d_func();
38 }
39
40 bool startDrag(QEvent *event, const QPointF &pos);
41 bool handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target);
42 bool handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target);
43 bool handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target);
44
45 bool handleMouseEvent(QQuickItem *source, QMouseEvent *event, QQuickPopup *target = nullptr);
46 bool handleHoverEvent(QQuickItem *source, QHoverEvent *event, QQuickPopup *target = nullptr);
47#if QT_CONFIG(quicktemplates2_multitouch)
48 bool handleTouchEvent(QQuickItem *source, QTouchEvent *event, QQuickPopup *target = nullptr);
49#endif
50
51 void addPopup(QQuickPopup *popup);
52 void removePopup(QQuickPopup *popup);
53 void setMouseGrabberPopup(QQuickPopup *popup);
54
55 QList<QQuickPopup *> stackingOrderPopups() const;
56 QList<QQuickPopup *> stackingOrderDrawers() const;
57
58 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
59 void itemRotationChanged(QQuickItem *item) override;
60
61 void updateGeometry();
62
63 QQmlComponent *modal = nullptr;
64 QQmlComponent *modeless = nullptr;
65 QList<QQuickPopup *> allPopups;
66 // Store drawers as QQuickPopup instead of QQuickDrawer because they're no longer
67 // QQuickDrawer by the time removePopup is called.
68 QList<QQuickPopup *> allDrawers;
69 QPointer<QQuickPopup> mouseGrabberPopup;
70 QPointer<QQuickItem> lastActiveFocusItem;
71};
72
74
75#endif // QQUICKOVERLAY_P_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtGui
Definition qevent.h:246
\inmodule QtGui
Definition qevent.h:196
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQmlComponent class encapsulates a QML component definition.
virtual void itemRotationChanged(QQuickItem *)
virtual void itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
QList< QQuickPopup * > allDrawers
QPointer< QQuickPopup > mouseGrabberPopup
QList< QQuickPopup * > allPopups
QPointer< QQuickItem > lastActiveFocusItem
\inmodule QtCore\reentrant
Definition qrect.h:484
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:917
Combined button and popup list for selecting options.
static QDBusError::ErrorType get(const char *name)
GLenum target
GLsizei GLsizei GLchar * source
struct _cl_event * event
#define Q_AUTOTEST_EXPORT
QGraphicsItem * item