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
qqmljsannotation.cpp
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
5
7
8bool QQmlJSAnnotation::isDeprecation() const { return name == QStringLiteral("Deprecated"); }
9
13 if (bindings.contains(QStringLiteral("reason"))) {
14
15 auto reason = bindings[QStringLiteral("reason")];
16
17 if (std::holds_alternative<QString>(reason)) {
18 deprecation.reason = std::get<QString>(reason);
19 }
20 }
21
22 return deprecation;
23}
24
bool contains(const Key &key) const noexcept
Returns true if the hash contains an item with the key; otherwise returns false.
Definition qhash.h:1007
Combined button and popup list for selecting options.
GLuint name
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
#define QStringLiteral(str)
QQQmlJSDeprecation deprecation() const
QHash< QString, Value > bindings
bool isDeprecation() const