Qt 6.x
The Qt SDK
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
24
25class QQuickPopup;
26
29{
30public:
31 Q_DECLARE_PUBLIC(QQuickOverlay)
32
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 addPopup(QQuickPopup *popup);
50 void removePopup(QQuickPopup *popup);
51 void setMouseGrabberPopup(QQuickPopup *popup);
52
53 QList<QQuickPopup *> stackingOrderPopups() 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;
63 // Store drawers as QQuickPopup instead of QQuickDrawer because they're no longer
64 // QQuickDrawer by the time removePopup is called.
68};
69
71
72#endif // QQUICKOVERLAY_P_P_H
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtGui
Definition qevent.h:245
Definition qlist.h:74
\inmodule QtGui
Definition qevent.h:195
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore
Definition qpointer.h:18
The QQmlComponent class encapsulates a QML component definition.
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:64
QList< QQuickPopup * > allDrawers
QPointer< QQuickPopup > mouseGrabberPopup
QList< QQuickPopup * > allPopups
QPointer< QQuickItem > lastActiveFocusItem
\inmodule QtCore\reentrant
Definition qrect.h:483
The QTouchEvent class contains parameters that describe a touch event.
Definition qevent.h:916
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