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/qstylehints.h>
11#include <QtGui/qeventpoint.h>
12#if QT_CONFIG(im)
13#include <QtGui/qinputmethod.h>
14#endif
15#if QT_CONFIG(validator)
16#include <QtGui/qvalidator.h>
17#endif
18#if QT_CONFIG(shortcut)
19#include <QtGui/qkeysequence.h>
20#endif
21
22#include <QtGui/qfontvariableaxis.h>
23
24#include <QtGui/QScreen>
25
26#include <QtQml/qqml.h>
27
28//
29// W A R N I N G
30// -------------
31//
32// This file is not part of the Qt API. It exists purely as an
33// implementation detail. This header file may change from version to
34// version without notice, or even be removed.
35//
36// We mean it.
37//
38
39QT_BEGIN_NAMESPACE
40
41struct QStyleHintsForeign
42{
43 Q_GADGET
44 QML_FOREIGN(QStyleHints)
45 QML_ANONYMOUS
46 QML_ADDED_IN_VERSION(6, 4)
47};
48
50{
51 Q_GADGET
52 QML_FOREIGN(QImage)
54};
55
56#if QT_CONFIG(validator)
57struct QValidatorForeign
58{
59 Q_GADGET
60 QML_FOREIGN(QValidator)
61 QML_ANONYMOUS
62 QML_ADDED_IN_VERSION(2, 0)
63};
64
65#if QT_CONFIG(regularexpression)
66struct QRegularExpressionValidatorForeign
67{
68 Q_GADGET
69 QML_FOREIGN(QRegularExpressionValidator)
70 QML_NAMED_ELEMENT(RegularExpressionValidator)
71 QML_ADDED_IN_VERSION(2, 14)
72};
73#endif // QT_CONFIG(regularexpression)
74
75#endif // QT_CONFIG(validator)
76
77#if QT_CONFIG(im)
78struct QInputMethodForeign
79{
80 Q_GADGET
81 QML_FOREIGN(QInputMethod)
82 QML_NAMED_ELEMENT(InputMethod)
83 QML_ADDED_IN_VERSION(2, 0)
84 QML_REMOVED_IN_VERSION(6, 4)
85 QML_UNCREATABLE("InputMethod is an abstract class.")
86};
87#endif // QT_CONFIG(im)
88
89#if QT_CONFIG(shortcut)
90namespace QKeySequenceForeign
91{
92 Q_NAMESPACE
93 QML_FOREIGN_NAMESPACE(QKeySequence)
94 QML_NAMED_ELEMENT(StandardKey)
95 QML_ADDED_IN_VERSION(2, 2)
96};
97#endif // QT_CONFIG(shortcut)
98
100{
101 Q_GADGET
102 QML_FOREIGN(QEventPoint)
105};
106
107// Prevent the same QEventPoint type from being exported into qmltypes
108// twice, as a value type and a namespace.
109// TODO: Remove once QTBUG-115855 is fixed.
111{
113};
114
122
124{
125 Q_GADGET
126 QML_ANONYMOUS
129};
130
132{
133 Q_GADGET
134 QML_FOREIGN(QScreen)
136 QML_ADDED_IN_VERSION(2, 3) // used in ScreenInfo
137};
138
139QT_END_NAMESPACE
140
141#endif // QTQUICKFOREIGN_P_H