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
qquickforeignutils_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QTQUICKFOREIGN_P_H
6#define QTQUICKFOREIGN_P_H
7
8#include <QtQuick/private/qtquickglobal_p.h>
9
10#include <QtGui/qaccessibilityhints.h>
11#include <QtGui/qstylehints.h>
12#include <QtGui/qeventpoint.h>
13#if QT_CONFIG(im)
14#include <QtGui/qinputmethod.h>
15#endif
16#if QT_CONFIG(validator)
17#include <QtGui/qvalidator.h>
18#endif
19#if QT_CONFIG(shortcut)
20#include <QtGui/qkeysequence.h>
21#endif
22
23#include <QtGui/qfontvariableaxis.h>
24
25#include <QtGui/QScreen>
26
27#include <QtQml/qqml.h>
28
29//
30// W A R N I N G
31// -------------
32//
33// This file is not part of the Qt API. It exists purely as an
34// implementation detail. This header file may change from version to
35// version without notice, or even be removed.
36//
37// We mean it.
38//
39
40QT_BEGIN_NAMESPACE
41
42struct QAccessibilityHintsForeign
43{
44 Q_GADGET
45 QML_FOREIGN(QAccessibilityHints)
46 QML_ANONYMOUS
47 QML_ADDED_IN_VERSION(6, 10)
48};
49
51{
52 Q_GADGET
53 QML_FOREIGN(QStyleHints)
56};
57
59{
60 Q_GADGET
61 QML_FOREIGN(QImage)
63};
64
65#if QT_CONFIG(validator)
66struct QValidatorForeign
67{
68 Q_GADGET
69 QML_FOREIGN(QValidator)
70 QML_ANONYMOUS
71 QML_ADDED_IN_VERSION(2, 0)
72};
73
74#if QT_CONFIG(regularexpression)
75struct QRegularExpressionValidatorForeign
76{
77 Q_GADGET
78 QML_FOREIGN(QRegularExpressionValidator)
79 QML_NAMED_ELEMENT(RegularExpressionValidator)
80 QML_ADDED_IN_VERSION(2, 14)
81};
82#endif // QT_CONFIG(regularexpression)
83
84#endif // QT_CONFIG(validator)
85
86#if QT_CONFIG(im)
87struct QInputMethodForeign
88{
89 Q_GADGET
90 QML_FOREIGN(QInputMethod)
91 QML_NAMED_ELEMENT(InputMethod)
92 QML_ADDED_IN_VERSION(2, 0)
93 QML_REMOVED_IN_VERSION(6, 4)
94 QML_UNCREATABLE("InputMethod is an abstract class.")
95};
96#endif // QT_CONFIG(im)
97
98#if QT_CONFIG(shortcut)
99namespace QKeySequenceForeign
100{
101 Q_NAMESPACE
102 QML_FOREIGN_NAMESPACE(QKeySequence)
103 QML_NAMED_ELEMENT(StandardKey)
104 QML_ADDED_IN_VERSION(2, 2)
105};
106#endif // QT_CONFIG(shortcut)
107
109{
110 Q_GADGET
111 QML_FOREIGN(QEventPoint)
114};
115
116// Prevent the same QEventPoint type from being exported into qmltypes
117// twice, as a value type and a namespace.
118// TODO: Remove once QTBUG-115855 is fixed.
120{
122};
123
131
133{
134 Q_GADGET
135 QML_ANONYMOUS
138};
139
141{
142 Q_GADGET
143 QML_FOREIGN(QScreen)
145 QML_ADDED_IN_VERSION(2, 3) // used in ScreenInfo
146};
147
148QT_END_NAMESPACE
149
150#endif // QTQUICKFOREIGN_P_H
Combined button and popup list for selecting options.