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
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 <variant>
22
23QT_BEGIN_NAMESPACE
24
25QT_ENABLE_P0846_SEMANTICS_FOR(get_if)
26
31
33{
34 using Value = std::variant<QString, double>;
35
38
39 bool isDeprecation() const;
41
42 friend bool operator==(const QQmlJSAnnotation &a, const QQmlJSAnnotation &b) noexcept;
43 friend bool operator!=(const QQmlJSAnnotation &a, const QQmlJSAnnotation &b) noexcept
44 {
45 return !(a == b);
46 }
47
48 friend size_t qHash(const QQmlJSAnnotation &annotation, size_t seed) noexcept;
49 friend size_t qHash(const QQmlJSAnnotation &annotation) noexcept
50 {
51 return qHash(annotation, size_t{0});
52 }
53};
54
55QT_END_NAMESPACE
56
57#endif // QQMLJSANNOTATION_P_H
Combined button and popup list for selecting options.
bool operator==(const QQmlJSAnnotation &a, const QQmlJSAnnotation &b) noexcept
size_t qHash(const QQmlJSAnnotation &annotation, size_t seed) noexcept
QQQmlJSDeprecation deprecation() const
QHash< QString, Value > bindings
friend bool operator!=(const QQmlJSAnnotation &a, const QQmlJSAnnotation &b) noexcept
bool isDeprecation() const
friend size_t qHash(const QQmlJSAnnotation &annotation) noexcept