Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickdeliveryagent_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKDELIVERYAGENT_P_H
6#define QQUICKDELIVERYAGENT_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick/private/qtquickglobal_p.h>
20
21#include <QtQml/qqml.h>
22#include <QtQml/private/qqmlglobal_p.h>
23
24#include <QtCore/qobject.h>
25#include <QtGui/qevent.h>
26
27QT_BEGIN_NAMESPACE
28
29Q_DECLARE_LOGGING_CATEGORY(lcPtr)
30Q_DECLARE_LOGGING_CATEGORY(lcHoverTrace)
31Q_DECLARE_LOGGING_CATEGORY(lcHoverCursor)
32Q_DECLARE_LOGGING_CATEGORY(lcTouchTarget)
33
34class QQuickItem;
35class QQuickDeliveryAgentPrivate;
36
37class Q_QUICK_EXPORT QQuickDeliveryAgent : public QObject
38{
39 Q_OBJECT
40 Q_DECLARE_PRIVATE(QQuickDeliveryAgent)
41
42public:
43 struct Q_QUICK_EXPORT Transform
44 {
45 virtual ~Transform();
46 virtual QPointF map(const QPointF &point) = 0;
47 };
48
49 explicit QQuickDeliveryAgent(QQuickItem *rootItem);
50 virtual ~QQuickDeliveryAgent();
51
52 QQuickItem *rootItem() const;
53
54 Transform *sceneTransform() const;
55 void setSceneTransform(Transform *transform);
56 bool event(QEvent *ev) override;
57
58Q_SIGNALS:
59
60private:
61 Q_DISABLE_COPY(QQuickDeliveryAgent)
62};
63
64#ifndef QT_NO_DEBUG_STREAM
65QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickDeliveryAgent *da);
66#endif
67
68QT_END_NAMESPACE
69
70#endif // QQUICKDELIVERYAGENT_P_H
QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickWindow *item)