1 | // Copyright (C) 2019 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 QTQUICKFOREIGN_P_H |
5 | #define QTQUICKFOREIGN_P_H |
6 | |
7 | #include <QtQuick/private/qtquickglobal_p.h> |
8 | |
9 | #include <QtGui/qstylehints.h> |
10 | #include <QtGui/qeventpoint.h> |
11 | #if QT_CONFIG(im) |
12 | #include <QtGui/qinputmethod.h> |
13 | #endif |
14 | #if QT_CONFIG(validator) |
15 | #include <QtGui/qvalidator.h> |
16 | #endif |
17 | #if QT_CONFIG(shortcut) |
18 | #include <QtGui/qkeysequence.h> |
19 | #endif |
20 | |
21 | #include <QtQml/qqml.h> |
22 | |
23 | // |
24 | // W A R N I N G |
25 | // ------------- |
26 | // |
27 | // This file is not part of the Qt API. It exists purely as an |
28 | // implementation detail. This header file may change from version to |
29 | // version without notice, or even be removed. |
30 | // |
31 | // We mean it. |
32 | // |
33 | |
34 | QT_BEGIN_NAMESPACE |
35 | |
36 | struct QStyleHintsForeign |
37 | { |
38 | Q_GADGET |
39 | QML_FOREIGN(QStyleHints) |
40 | QML_ANONYMOUS |
41 | QML_ADDED_IN_VERSION(6, 4) |
42 | }; |
43 | |
44 | struct QImageForeign |
45 | { |
46 | Q_GADGET |
47 | QML_FOREIGN(QImage) |
48 | QML_ANONYMOUS |
49 | }; |
50 | |
51 | #if QT_CONFIG(validator) |
52 | struct QValidatorForeign |
53 | { |
54 | Q_GADGET |
55 | QML_FOREIGN(QValidator) |
56 | QML_ANONYMOUS |
57 | QML_ADDED_IN_VERSION(2, 0) |
58 | }; |
59 | |
60 | #if QT_CONFIG(regularexpression) |
61 | struct QRegularExpressionValidatorForeign |
62 | { |
63 | Q_GADGET |
64 | QML_FOREIGN(QRegularExpressionValidator) |
65 | QML_NAMED_ELEMENT(RegularExpressionValidator) |
66 | QML_ADDED_IN_VERSION(2, 14) |
67 | }; |
68 | #endif // QT_CONFIG(regularexpression) |
69 | |
70 | #endif // QT_CONFIG(validator) |
71 | |
72 | #if QT_CONFIG(im) |
73 | struct QInputMethodForeign |
74 | { |
75 | Q_GADGET |
76 | QML_FOREIGN(QInputMethod) |
77 | QML_NAMED_ELEMENT(InputMethod) |
78 | QML_ADDED_IN_VERSION(2, 0) |
79 | QML_REMOVED_IN_VERSION(6, 4) |
80 | QML_UNCREATABLE("InputMethod is an abstract class.") |
81 | }; |
82 | #endif // QT_CONFIG(im) |
83 | |
84 | #if QT_CONFIG(shortcut) |
85 | namespace QKeySequenceForeign |
86 | { |
87 | Q_NAMESPACE |
88 | QML_FOREIGN_NAMESPACE(QKeySequence) |
89 | QML_NAMED_ELEMENT(StandardKey) |
90 | QML_ADDED_IN_VERSION(2, 2) |
91 | }; |
92 | #endif // QT_CONFIG(shortcut) |
93 | |
94 | struct QEventPointForeign |
95 | { |
96 | Q_GADGET |
97 | QML_FOREIGN(QEventPoint) |
98 | QML_VALUE_TYPE(eventPoint) |
99 | QML_ADDED_IN_VERSION(6, 5) |
100 | }; |
101 | |
102 | namespace QEventPointForeignNamespace |
103 | { |
104 | Q_NAMESPACE |
105 | QML_FOREIGN_NAMESPACE(QEventPoint) |
106 | QML_NAMED_ELEMENT(EventPoint) |
107 | QML_ADDED_IN_VERSION(6, 6) |
108 | }; |
109 | |
110 | QT_END_NAMESPACE |
111 | |
112 | #endif // QTQUICKFOREIGN_P_H |
113 |