Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qqmljsannotation_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant
4
5
#
ifndef
QQMLJSANNOTATION_P_H
6
#
define
QQMLJSANNOTATION_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
18
#
include
<
QtCore
/
qglobal
.
h
>
19
#
include
<
QtCore
/
qhash
.
h
>
20
21
#
include
<
qtqmlcompilerexports
.
h
>
22
#
include
<
variant
>
23
24
QT_BEGIN_NAMESPACE
25
26
QT_ENABLE_P0846_SEMANTICS_FOR(get_if)
27
28
struct
QQQmlJSDeprecation
29
{
30
QString
reason
;
31
};
32
33
struct
Q_QMLCOMPILER_EXPORT
QQmlJSAnnotation
34
{
35
using
Value = std::variant<QString,
double
>;
36
37
QString name;
38
QHash<QString, Value> bindings;
39
40
bool
isDeprecation()
const
;
41
QQQmlJSDeprecation deprecation()
const
;
42
43
friend
bool
operator==(
const
QQmlJSAnnotation &a,
const
QQmlJSAnnotation &b)
noexcept
;
44
friend
bool
operator!=(
const
QQmlJSAnnotation &a,
const
QQmlJSAnnotation &b)
noexcept
45
{
46
return
!(a == b);
47
}
48
49
friend
size_t qHash(
const
QQmlJSAnnotation &annotation, size_t seed)
noexcept
;
50
friend
size_t qHash(
const
QQmlJSAnnotation &annotation)
noexcept
51
{
52
return
qHash(annotation, size_t{0});
53
}
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QQMLJSANNOTATION_P_H
QByteArray::FromBase64Result::operator==
friend bool operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) noexcept
Returns true if lhs and rhs are equal, otherwise returns false.
Definition
qbytearray.h:842
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qHash
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept
Definition
qsize.h:192
QQQmlJSDeprecation
Definition
qqmljsannotation_p.h:29
QQQmlJSDeprecation::reason
QString reason
Definition
qqmljsannotation_p.h:30
QQmlJSAnnotation
Definition
qqmljsannotation_p.h:34
qtdeclarative
src
qmlcompiler
qqmljsannotation_p.h
Generated on
for Qt by
1.18.0