7#include "QtQml/private/qqmltranslation_p.h"
23 if (
auto boolLit = std::get_if<Content::BoolLiteral>(&m_bindingContent))
24 return boolLit->value;
31 if (
auto numberLit = std::get_if<Content::NumberLiteral>(&m_bindingContent))
32 return numberLit->value;
39 if (
auto stringLiteral = std::get_if<Content::StringLiteral>(&m_bindingContent))
40 return stringLiteral->value;
47 if (
auto regexpLiteral = std::get_if<Content::RegexpLiteral>(&m_bindingContent))
48 return regexpLiteral->value;
63 if (
auto translation = std::get_if<Content::TranslationById>(&m_bindingContent)) {
65 }
else if (
auto translation = std::get_if<Content::TranslationString>(&m_bindingContent)) {
68 : translation->context;
84 case BindingType::BoolLiteral:
86 case BindingType::NumberLiteral:
88 case BindingType::Translation:
89 case BindingType::TranslationById:
90 case BindingType::StringLiteral:
92 case BindingType::RegExpLiteral:
94 case BindingType::Null:
96 case BindingType::Invalid:
97 case BindingType::Script:
98 case BindingType::Object:
99 case BindingType::Interceptor:
100 case BindingType::ValueSource:
101 case BindingType::AttachedProperty:
102 case BindingType::GroupProperty:
105 Q_UNREACHABLE_RETURN({});
QQmlJSScope::ConstPtr stringType() const
QQmlJSScope::ConstPtr nullType() const
QQmlJSScope::ConstPtr boolType() const
QQmlJSScope::ConstPtr typeForName(const QString &name) const
static QString contextFromQmlFilename(const QString &qmlFilename)
std::variant< std::nullptr_t, QsTrData, QsTrIdData > Data
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QLatin1StringView QLatin1String