1// Copyright (C) 2016 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 QQUICKITEMSMODULE_P_H
5#define QQUICKITEMSMODULE_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 <private/qtquickglobal_p.h>
19#include <QtGui/qevent.h>
20#include <QtGui/qpointingdevice.h>
21#include <qqml.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQuickItemsModule
26{
27public:
28 static void defineModule();
29};
30
31struct QInputDeviceForeign
32{
33 Q_GADGET
34 QML_FOREIGN(QInputDevice)
35 QML_NAMED_ELEMENT(InputDevice)
36 QML_ADDED_IN_VERSION(6, 0)
37 QML_UNCREATABLE("InputDevice is only available via read-only properties.")
38};
39
40struct QPointingDeviceForeign
41{
42 Q_GADGET
43 QML_FOREIGN(QPointingDevice)
44 QML_NAMED_ELEMENT(PointerDevice)
45 QML_ADDED_IN_VERSION(2, 12)
46 QML_UNCREATABLE("PointerDevice is only available via read-only properties.")
47};
48
49struct QPointingDeviceUniqueIdForeign
50{
51 Q_GADGET
52 QML_FOREIGN(QPointingDeviceUniqueId)
53 QML_VALUE_TYPE(pointingDeviceUniqueId)
54 QML_ADDED_IN_VERSION(2, 9)
55 QML_UNCREATABLE("pointingDeviceUniqueId cannot be created in QML.")
56};
57
58#if !QT_CONFIG(quick_animatedimage)
59struct QQuickAnimatedImageNotAvailable
60{
61 Q_GADGET
62 QML_UNAVAILABLE
63 QML_NAMED_ELEMENT(AnimatedImage)
64 QML_ADDED_IN_VERSION(2, 0)
65 QML_UNCREATABLE("Qt was built without support for QMovie.")
66};
67#endif
68
69QT_END_NAMESPACE
70
71#endif // QQUICKITEMSMODULE_P_H
72
73

source code of qtdeclarative/src/quick/items/qquickitemsmodule_p.h