|
| | QQmlJSMetaPropertyBinding () |
| | QQmlJSMetaPropertyBinding (QQmlJS::SourceLocation location) |
| | QQmlJSMetaPropertyBinding (QQmlJS::SourceLocation location, const QString &propName) |
| | QQmlJSMetaPropertyBinding (QQmlJS::SourceLocation location, const QQmlJSMetaProperty &prop) |
| void | setPropertyName (const QString &propertyName) |
| QString | propertyName () const |
| const QQmlJS::SourceLocation & | sourceLocation () const |
| BindingType | bindingType () const |
| bool | isValid () const |
| | A binding is valid when it has both a target (m_propertyName is set) and some content set (m_bindingType != Invalid).
|
| void | setStringLiteral (QAnyStringView value) |
| void | setScriptBinding (QQmlJSMetaMethod::RelativeFunctionIndex value, ScriptBindingKind kind, ScriptBindingValueType valueType=ScriptBindingValueType::ScriptValue_Unknown) |
| void | setGroupBinding (const QSharedPointer< const QQmlJSScope > &groupScope) |
| void | setAttachedBinding (const QSharedPointer< const QQmlJSScope > &attachingScope) |
| void | setBoolLiteral (bool value) |
| void | setNullLiteral () |
| void | setNumberLiteral (double value) |
| void | setRegexpLiteral (QAnyStringView value) |
| void | setTranslation (QStringView text, QStringView comment, QStringView context, int number) |
| void | setTranslationId (QStringView id, int number) |
| void | setObject (const QString &typeName, const QSharedPointer< const QQmlJSScope > &type) |
| void | setInterceptor (const QString &typeName, const QSharedPointer< const QQmlJSScope > &type) |
| void | setValueSource (const QString &typeName, const QSharedPointer< const QQmlJSScope > &type) |
| bool | boolValue () const |
| double | numberValue () const |
| QString | stringValue () const |
| QString | regExpValue () const |
| QQmlTranslation | translationDataValue (QString qmlFileNameForContext=QString()) const |
| | Extracts the information about translations from a binding.
|
| QSharedPointer< const QQmlJSScope > | literalType (const QQmlJSTypeResolver *resolver) const |
| | Uses resolver to return the correct type for the stored literal and a null scope pointer if the binding does not contain a literal.
|
| QQmlJSMetaMethod::RelativeFunctionIndex | scriptIndex () const |
| ScriptBindingKind | scriptKind () const |
| ScriptBindingValueType | scriptValueType () const |
| QString | objectTypeName () const |
| QSharedPointer< const QQmlJSScope > | objectType () const |
| QString | interceptorTypeName () const |
| QSharedPointer< const QQmlJSScope > | interceptorType () const |
| QString | valueSourceTypeName () const |
| QSharedPointer< const QQmlJSScope > | valueSourceType () const |
| QSharedPointer< const QQmlJSScope > | groupType () const |
| QSharedPointer< const QQmlJSScope > | attachedType () const |
| bool | hasLiteral () const |
| bool | hasObject () const |
| bool | hasInterceptor () const |
| bool | hasValueSource () const |
\inmodule QtQmlCompiler
Represents a single QML binding of a specific type. Typically, when you create a new binding, you know all the details of it already, so you should just set all the data at once.
Definition at line 519 of file qqmljsmetatypes_p.h.