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
QQmlTranslationBindingFromBinding Class Reference
Inheritance diagram for QQmlTranslationBindingFromBinding:
Collaboration diagram for QQmlTranslationBindingFromBinding:

Public Member Functions

 QQmlTranslationBindingFromBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QV4::CompiledData::Binding *binding)
QString bindingValue () const override
QQmlSourceLocation sourceLocation () const override final
 QQmlTranslationBindingFromBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit, const QV4::CompiledData::Binding *binding)
QString bindingValue () const override
QQmlSourceLocation sourceLocation () const override final
Public Member Functions inherited from QQmlTranslationBinding
 QQmlTranslationBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit)
void doUpdate (const DeleteWatcher &watcher, QQmlPropertyData::WriteFlags flags, QV4::Scope &scope) override final
bool hasDependencies () const override final
 QQmlTranslationBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit)
void doUpdate (const DeleteWatcher &watcher, QQmlPropertyData::WriteFlags flags, QV4::Scope &scope) override final
bool hasDependencies () const override final
Public Member Functions inherited from QQmlBinding
Kind kind () const final
 ~QQmlBinding () override
bool mustCaptureBindableProperty () const final
void refresh () override
void setEnabled (bool, QQmlPropertyData::WriteFlags flags=QQmlPropertyData::DontRemoveBinding) override
QString expression () const override
void update (QQmlPropertyData::WriteFlags flags=QQmlPropertyData::DontRemoveBinding)
void printBindingLoopError (const QQmlProperty &prop) override
QVariant evaluate ()
bool evaluate (void *result, QMetaType type)
void expressionChanged () override
void setSourceLocation (const QQmlSourceLocation &location)
void setBoundFunction (QV4::BoundFunction *boundFunction)
bool hasBoundFunction () const
QList< QQmlProperty > dependencies () const
Public Member Functions inherited from QQmlJavaScriptExpression
 QQmlJavaScriptExpression ()
virtual ~QQmlJavaScriptExpression ()
virtual QString expressionIdentifier () const
QV4::ReturnedValue evaluate (bool *isUndefined)
QV4::ReturnedValue evaluate (QV4::CallData *callData, bool *isUndefined)
bool evaluate (void **a, const QMetaType *types, int argc)
bool notifyOnValueChanged () const
void setNotifyOnValueChanged (bool v)
void resetNotifyOnValueChanged ()
QObject * scopeObject () const
void setScopeObject (QObject *v)
bool hasContext () const
bool hasValidContext () const
QQmlContext * publicContext () const
QQmlRefPointer< QQmlContextData > context () const
void setContext (const QQmlRefPointer< QQmlContextData > &context)
void insertIntoList (QQmlJavaScriptExpression **listHead)
QV4::Function * function () const
void setFunction (QV4::Function *f)
QV4::ExecutableCompilationUnit * compilationUnit () const
QQmlJavaScriptExpression * nextExpression () const
bool hasError () const
bool hasDelayedError () const
QQmlError error (QQmlEngine *) const
void clearError ()
void clearActiveGuards ()
QQmlDelayedError * delayedError ()
QQmlEngine * engine () const
bool hasUnresolvedNames () const
bool needsPropertyChangeTrigger (QObject *target, int propertyIndex)
QPropertyChangeTrigger * allocatePropertyChangeTrigger (QObject *target, int propertyIndex)
Public Member Functions inherited from QQmlAbstractBinding
virtual ~QQmlAbstractBinding ()
QQmlPropertyIndex targetPropertyIndex () const
QObject * targetObject () const
void setTarget (const QQmlProperty &)
bool setTarget (QObject *, const QQmlPropertyData &, const QQmlPropertyData *valueType)
bool setTarget (QObject *, int coreIndex, bool coreIsAlias, int valueTypeIndex)
void addToObject ()
 Add this binding to object.
void removeFromObject ()
 Remove the binding from the object.
QQmlAbstractBinding * nextBinding () const
bool canUseAccessor () const
void setCanUseAccessor (bool canUseAccessor)
bool isSticky () const
void setSticky (bool isSticky)
Public Member Functions inherited from QPropertyObserver
constexpr QPropertyObserver ()=default
 QPropertyObserver (QPropertyObserver &&other) noexcept
QPropertyObserver & operator= (QPropertyObserver &&other) noexcept
 ~QPropertyObserver ()
template<typename Property, QtPrivate::IsUntypedPropertyData< Property > = true>
void setSource (const Property &property)
void setSource (const QtPrivate::QPropertyBindingData &property)

Additional Inherited Members

Public Types inherited from QQmlBinding
enum  { Invalid = -1 }
typedef QExplicitlySharedDataPointer< QQmlBinding > Ptr
typedef int Identifier
Public Types inherited from QQmlAbstractBinding
enum  Kind { ValueTypeProxy , QmlBinding , PropertyToPropertyBinding }
enum  State { Disabled = 0 , AddedToObject = 1 , BindingEnabled = 2 , UpdatingBinding = 3 }
enum  TargetTag { NoTargetTag = 0x0 , CanUseAccessor = 0x1 , IsSticky = 0x2 }
typedef QExplicitlySharedDataPointer< QQmlAbstractBinding > Ptr
Public Types inherited from QPropertyObserverBase
enum  ObserverTag { ObserverNotifiesBinding , ObserverNotifiesChangeHandler , ObserverIsPlaceholder }
Static Public Member Functions inherited from QQmlTranslationBinding
static void onLanguageChange (QPropertyObserver *observer, QUntypedPropertyData *)
static void onLanguageChange (QPropertyObserver *observer, QUntypedPropertyData *)
Static Public Member Functions inherited from QQmlBinding
static QQmlBinding * create (const QQmlPropertyData *, const QQmlScriptString &, QObject *, QQmlContext *)
static QQmlBinding * create (const QQmlPropertyData *, const QString &, QObject *, const QQmlRefPointer< QQmlContextData > &, const QString &url=QString(), quint16 lineNumber=0)
static QQmlBinding * create (const QQmlPropertyData *property, QV4::Function *function, QObject *obj, const QQmlRefPointer< QQmlContextData > &ctxt, QV4::ExecutionContext *scope)
static QQmlBinding * create (QMetaType propertyType, QV4::Function *function, QObject *obj, const QQmlRefPointer< QQmlContextData > &ctxt, QV4::ExecutionContext *scope)
static QQmlBinding * createTranslationBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, const QV4::CompiledData::Binding *binding, QObject *obj, const QQmlRefPointer< QQmlContextData > &ctxt)
static QQmlBinding * createTranslationBinding (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, const QQmlRefPointer< QQmlContextData > &ctxt, const QString &propertyName, const QQmlTranslation &translationData, const QQmlSourceLocation &location, QObject *obj)
Static Public Member Functions inherited from QQmlJavaScriptExpression
static QV4::ReturnedValue evalFunction (const QQmlRefPointer< QQmlContextData > &ctxt, QObject *scope, const QString &code, const QString &filename, quint16 line)
Public Attributes inherited from QQmlAbstractBinding
RefCount ref
Protected Types inherited from QQmlJavaScriptExpression
enum  GuardTag { NoGuardTag , NotifyOnValueChanged }
enum  Tag { NoTag , InEvaluationLoop }
Protected Types inherited from QPropertyObserverBase
using ChangeHandler = void (*)(QPropertyObserver*, QUntypedPropertyData *)
Protected Member Functions inherited from GenericBinding< QMetaType::QString >
Q_ALWAYS_INLINE bool write (void *result, QMetaType type, bool isUndefined, QQmlPropertyData::WriteFlags flags) override final
Q_ALWAYS_INLINE bool doStore (T value, const QQmlPropertyData *pd, QQmlPropertyData::WriteFlags flags) const
Protected Member Functions inherited from QQmlBinding
virtual bool write (const QV4::Value &result, bool isUndefined, QQmlPropertyData::WriteFlags flags)=0
int getPropertyType () const
bool slowWrite (const QQmlPropertyData &core, const QQmlPropertyData &valueTypeData, const QV4::Value &result, bool isUndefined, QQmlPropertyData::WriteFlags flags)
bool slowWrite (const QQmlPropertyData &core, const QQmlPropertyData &valueTypeData, const void *result, QMetaType resultType, bool isUndefined, QQmlPropertyData::WriteFlags flags)
QV4::ReturnedValue evaluate (bool *isUndefined)
Protected Member Functions inherited from QQmlJavaScriptExpression
void createQmlBinding (const QQmlRefPointer< QQmlContextData > &ctxt, QObject *scope, const QString &code, const QString &filename, quint16 line)
void setupFunction (QV4::ExecutionContext *qmlContext, QV4::Function *f)
void setCompilationUnit (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &compilationUnit)
Protected Member Functions inherited from QQmlAbstractBinding
 QQmlAbstractBinding ()
void setAddedToObject (bool v)
bool isAddedToObject () const
void setNextBinding (QQmlAbstractBinding *)
void getPropertyData (const QQmlPropertyData **propertyData, QQmlPropertyData *valueTypeData) const
bool updatingFlag () const
void setUpdatingFlag (bool)
bool enabledFlag () const
void setEnabledFlag (bool)
void updateCanUseAccessor ()
Protected Member Functions inherited from QPropertyObserver
 QPropertyObserver (ChangeHandler changeHandler)
QUntypedPropertyData * aliasedProperty () const
Protected Attributes inherited from QQmlJavaScriptExpression
QBiPointer< QObject, DeleteWatcher > m_scopeObject
QForwardFieldList< QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next, GuardTag > activeGuards
QTaggedPointer< QQmlDelayedError, Tag > m_error
TriggerList * qpropertyChangeTriggers = nullptr
Protected Attributes inherited from QQmlAbstractBinding
QQmlPropertyIndex m_targetIndex
QTaggedPointer< QObject, TargetTags > m_target
QTaggedPointer< QQmlAbstractBinding, State > m_nextBinding

Detailed Description

Definition at line 331 of file qqmlbinding.cpp.

Constructor & Destructor Documentation

◆ QQmlTranslationBindingFromBinding() [1/2]

QQmlTranslationBindingFromBinding::QQmlTranslationBindingFromBinding ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & compilationUnit,
const QV4::CompiledData::Binding * binding )
inline

Definition at line 336 of file qqmlbinding.cpp.

◆ QQmlTranslationBindingFromBinding() [2/2]

QQmlTranslationBindingFromBinding::QQmlTranslationBindingFromBinding ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & compilationUnit,
const QV4::CompiledData::Binding * binding )
inline

Definition at line 336 of file qqmlbinding.cpp.

Member Function Documentation

◆ bindingValue() [1/2]

QString QQmlTranslationBindingFromBinding::bindingValue ( ) const
inlineoverridevirtual

Implements QQmlTranslationBinding.

Definition at line 343 of file qqmlbinding.cpp.

◆ bindingValue() [2/2]

QString QQmlTranslationBindingFromBinding::bindingValue ( ) const
inlineoverridevirtual

Implements QQmlTranslationBinding.

Definition at line 343 of file qqmlbinding.cpp.

◆ sourceLocation() [1/2]

QQmlSourceLocation QQmlTranslationBindingFromBinding::sourceLocation ( ) const
inlinefinaloverridevirtual

Reimplemented from QQmlBinding.

Definition at line 348 of file qqmlbinding.cpp.

◆ sourceLocation() [2/2]

QQmlSourceLocation QQmlTranslationBindingFromBinding::sourceLocation ( ) const
inlinefinaloverridevirtual

Reimplemented from QQmlBinding.

Definition at line 348 of file qqmlbinding.cpp.


The documentation for this class was generated from the following file: