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
QQmlBoundSignalExpression Class Referencefinal

#include <qqmlboundsignal_p.h>

+ Inheritance diagram for QQmlBoundSignalExpression:
+ Collaboration diagram for QQmlBoundSignalExpression:

Public Member Functions

 QQmlBoundSignalExpression (const QObject *target, int index, const QQmlRefPointer< QQmlContextData > &ctxt, QObject *scope, const QString &expression, const QString &fileName, quint16 line, quint16 column, const QString &handlerName=QString(), const QString &parameterString=QString())
 
 QQmlBoundSignalExpression (const QObject *target, int index, const QQmlRefPointer< QQmlContextData > &ctxt, QObject *scopeObject, QV4::Function *function, QV4::ExecutionContext *scope=nullptr)
 
QString expressionIdentifier () const override
 
void expressionChanged () override
 
void evaluate (void **a)
 
bool mustCaptureBindableProperty () const final
 
QString expression () const
 
const QObjecttarget () const
 
- Public Member Functions inherited from QQmlJavaScriptExpression
 QQmlJavaScriptExpression ()
 
virtual ~QQmlJavaScriptExpression ()
 
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 ()
 
QObjectscopeObject () const
 
void setScopeObject (QObject *v)
 
virtual QQmlSourceLocation sourceLocation () const
 
bool hasContext () const
 
bool hasValidContext () const
 
QQmlContextpublicContext () const
 
QQmlRefPointer< QQmlContextDatacontext () const
 
void setContext (const QQmlRefPointer< QQmlContextData > &context)
 
void insertIntoList (QQmlJavaScriptExpression **listHead)
 
QV4::Functionfunction () const
 
virtual void refresh ()
 
bool hasError () const
 
bool hasDelayedError () const
 
QQmlError error (QQmlEngine *) const
 
void clearError ()
 
void clearActiveGuards ()
 
QQmlDelayedErrordelayedError ()
 
QQmlEngineengine () const
 
bool hasUnresolvedNames () const
 
bool needsPropertyChangeTrigger (QObject *target, int propertyIndex)
 
QPropertyChangeTriggerallocatePropertyChangeTrigger (QObject *target, int propertyIndex)
 
- Public Member Functions inherited from QQmlRefCounted< QQmlBoundSignalExpression >
void release () const
 
- Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
 
void addref () const
 
int count () const
 

Private Member Functions

 ~QQmlBoundSignalExpression () override
 

Friends

class QQmlRefCounted< QQmlBoundSignalExpression >
 

Additional Inherited Members

- 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)
 
- Protected Types inherited from QQmlJavaScriptExpression
enum  GuardTag { NoGuardTag , NotifyOnValueChanged }
 
enum  Tag { NoTag , InEvaluationLoop }
 
- 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 QQmlRefCounted< QQmlBoundSignalExpression >
 ~QQmlRefCounted ()
 
- Protected Attributes inherited from QQmlJavaScriptExpression
QBiPointer< QObject, DeleteWatcherm_scopeObject
 
QForwardFieldList< QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next, GuardTagactiveGuards
 
QTaggedPointer< QQmlDelayedError, Tagm_error
 
TriggerListqpropertyChangeTriggers = nullptr
 

Detailed Description

Definition at line 27 of file qqmlboundsignal_p.h.

Constructor & Destructor Documentation

◆ QQmlBoundSignalExpression() [1/2]

QQmlBoundSignalExpression::QQmlBoundSignalExpression ( const QObject * target,
int index,
const QQmlRefPointer< QQmlContextData > & ctxt,
QObject * scope,
const QString & expression,
const QString & fileName,
quint16 line,
quint16 column,
const QString & handlerName = QString(),
const QString & parameterString = QString() )

◆ QQmlBoundSignalExpression() [2/2]

QQmlBoundSignalExpression::QQmlBoundSignalExpression ( const QObject * target,
int index,
const QQmlRefPointer< QQmlContextData > & ctxt,
QObject * scopeObject,
QV4::Function * function,
QV4::ExecutionContext * scope = nullptr )

Definition at line 70 of file qqmlboundsignal.cpp.

References QQmlJavaScriptExpression::scopeObject().

+ Here is the call graph for this function:

Member Function Documentation

◆ ~QQmlBoundSignalExpression()

QQmlBoundSignalExpression::~QQmlBoundSignalExpression ( )
overrideprivate

Definition at line 133 of file qqmlboundsignal.cpp.

◆ evaluate()

void QQmlBoundSignalExpression::evaluate ( void ** a)

Definition at line 157 of file qqmlboundsignal.cpp.

References QQmlEnginePrivate::dereferenceScarceResources(), QQmlJavaScriptExpression::engine(), QQmlJavaScriptExpression::evaluate(), QQmlEnginePrivate::get(), QJSEngine::handle(), i, QMetaType::IsEnumeration, QMetaMethod::parameterCount(), QMetaMethod::parameterMetaType(), QQmlEnginePrivate::referenceScarceResources(), QMetaObjectPrivate::signal(), and storage.

Referenced by QQmlPropertyObserver::QQmlPropertyObserver().

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

◆ expression()

QString QQmlBoundSignalExpression::expression ( ) const

Definition at line 148 of file qqmlboundsignal.cpp.

References QStringLiteral.

Referenced by QQmlData::destroyed().

+ Here is the caller graph for this function:

◆ expressionChanged()

void QQmlBoundSignalExpression::expressionChanged ( )
overridevirtual

Implements QQmlJavaScriptExpression.

Definition at line 143 of file qqmlboundsignal.cpp.

◆ expressionIdentifier()

QString QQmlBoundSignalExpression::expressionIdentifier ( ) const
overridevirtual

Reimplemented from QQmlJavaScriptExpression.

Definition at line 137 of file qqmlboundsignal.cpp.

References QQmlSourceLocation::line, QString::number(), QQmlSourceLocation::sourceFile, and QQmlJavaScriptExpression::sourceLocation().

+ Here is the call graph for this function:

◆ mustCaptureBindableProperty()

bool QQmlBoundSignalExpression::mustCaptureBindableProperty ( ) const
inlinefinalvirtual

Reimplemented from QQmlJavaScriptExpression.

Definition at line 49 of file qqmlboundsignal_p.h.

◆ target()

const QObject * QQmlBoundSignalExpression::target ( ) const
inline

Definition at line 52 of file qqmlboundsignal_p.h.

Friends And Related Symbol Documentation

◆ QQmlRefCounted< QQmlBoundSignalExpression >

friend class QQmlRefCounted< QQmlBoundSignalExpression >
friend

Definition at line 103 of file qqmlboundsignal_p.h.


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