Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
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
35
43
50
51#if QT_CONFIG(validator)
52struct QValidatorForeign
53{
58};
59
60#if QT_CONFIG(regularexpression)
61struct QRegularExpressionValidatorForeign
62{
64 QML_FOREIGN(QRegularExpressionValidator)
65 QML_NAMED_ELEMENT(RegularExpressionValidator)
67};
68#endif // QT_CONFIG(regularexpression)
69
70#endif // QT_CONFIG(validator)
71
72#if QT_CONFIG(im)
73struct QInputMethodForeign
74{
77 QML_NAMED_ELEMENT(InputMethod)
80 QML_UNCREATABLE("InputMethod is an abstract class.")
81};
82#endif // QT_CONFIG(im)
83
84#if QT_CONFIG(shortcut)
85namespace QKeySequenceForeign
86{
89 QML_NAMED_ELEMENT(StandardKey)
91};
92#endif // QT_CONFIG(shortcut)
93
101
102// Prevent the same QEventPoint type from being exported into qmltypes
103// twice, as a value type and a namespace.
104// TODO: Remove once QTBUG-115855 is fixed.
106{
108};
109
117
119
120#endif // QTQUICKFOREIGN_P_H
The QEventPoint class provides information about a point in a QPointerEvent.
Definition qeventpoint.h:20
\inmodule QtGui
Definition qimage.h:37
The QInputMethod class provides access to the active text input method.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
The QStyleHints class contains platform specific hints and settings. \inmodule QtGui.
Definition qstylehints.h:17
The QValidator class provides validation of input text.
Definition qvalidator.h:24
Combined button and popup list for selecting options.
#define QML_UNCREATABLE(REASON)
#define QML_ANONYMOUS
#define QML_FOREIGN_NAMESPACE(FOREIGN_NAMESPACE)
#define QML_VALUE_TYPE(NAME)
#define QML_NAMED_ELEMENT(NAME)
#define QML_REMOVED_IN_VERSION(MAJOR, MINOR)
#define QML_FOREIGN(FOREIGN_TYPE)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_GADGET
#define Q_NAMESPACE