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 Struct Reference

#include <qqmljsannotation_p.h>

+ Collaboration diagram for QQmlJSAnnotation:

Public Types

using Value = std::variant<QString, double>
 

Public Member Functions

bool isDeprecation () const
 
QQQmlJSDeprecation deprecation () const
 

Public Attributes

QString name
 
QHash< QString, Valuebindings
 

Friends

bool operator== (const QQmlJSAnnotation &a, const QQmlJSAnnotation &b)
 
bool operator!= (const QQmlJSAnnotation &a, const QQmlJSAnnotation &b)
 
size_t qHash (const QQmlJSAnnotation &annotation, size_t seed=0)
 

Detailed Description

Definition at line 29 of file qqmljsannotation_p.h.

Member Typedef Documentation

◆ Value

using QQmlJSAnnotation::Value = std::variant<QString, double>

Definition at line 31 of file qqmljsannotation_p.h.

Member Function Documentation

◆ deprecation()

QQQmlJSDeprecation QQmlJSAnnotation::deprecation ( ) const

Definition at line 10 of file qqmljsannotation.cpp.

References bindings, QHash< Key, T >::contains(), deprecation(), isDeprecation(), Q_ASSERT, QStringLiteral, and QQQmlJSDeprecation::reason.

Referenced by deprecation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isDeprecation()

QT_BEGIN_NAMESPACE bool QQmlJSAnnotation::isDeprecation ( ) const

Definition at line 8 of file qqmljsannotation.cpp.

References QStringLiteral.

Referenced by deprecation().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QQmlJSAnnotation & a,
const QQmlJSAnnotation & b )
friend

Definition at line 44 of file qqmljsannotation_p.h.

◆ operator==

bool operator== ( const QQmlJSAnnotation & a,
const QQmlJSAnnotation & b )
friend

Definition at line 39 of file qqmljsannotation_p.h.

◆ qHash

size_t qHash ( const QQmlJSAnnotation & annotation,
size_t seed = 0 )
friend

Definition at line 48 of file qqmljsannotation_p.h.

Member Data Documentation

◆ bindings

QHash<QString, Value> QQmlJSAnnotation::bindings

Definition at line 34 of file qqmljsannotation_p.h.

Referenced by deprecation().

◆ name

QString QQmlJSAnnotation::name

Definition at line 33 of file qqmljsannotation_p.h.

Referenced by QQmlJSImportVisitor::parseAnnotations().


The documentation for this struct was generated from the following files: