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(lcTouchTarget)
32
33class QQuickItem;
34class QQuickDeliveryAgentPrivate;
35
36class Q_QUICK_EXPORT QQuickDeliveryAgent : public QObject
37{
38 Q_OBJECT
39 Q_DECLARE_PRIVATE(QQuickDeliveryAgent)
40
41public:
42 struct Q_QUICK_EXPORT Transform
43 {
44 virtual ~Transform();
45 virtual QPointF map(const QPointF &point) = 0;
46 };
47
48 explicit QQuickDeliveryAgent(QQuickItem *rootItem);
49 virtual ~QQuickDeliveryAgent();
50
51 QQuickItem *rootItem() const;
52
53 Transform *sceneTransform() const;
54 void setSceneTransform(Transform *transform);
55 bool event(QEvent *ev) override;
56
57Q_SIGNALS:
58
59private:
60 Q_DISABLE_COPY(QQuickDeliveryAgent)
61};
62
63#ifndef QT_NO_DEBUG_STREAM
64QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickDeliveryAgent *da);
65#endif
66
67QT_END_NAMESPACE
68
69#endif // QQUICKDELIVERYAGENT_P_H
QDebug Q_QUICK_EXPORT operator<<(QDebug debug, const QQuickWindow *item)