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
QQmlExpressionPrivate Class Reference

#include <qqmlexpression_p.h>

Inheritance diagram for QQmlExpressionPrivate:
Collaboration diagram for QQmlExpressionPrivate:

Public Member Functions

 QQmlExpressionPrivate ()
 ~QQmlExpressionPrivate () override
void init (const QQmlRefPointer< QQmlContextData > &, const QString &, QObject *)
void init (const QQmlRefPointer< QQmlContextData > &, QV4::Function *runtimeFunction, QObject *)
QVariant value (bool *isUndefined=nullptr)
QV4::ReturnedValue v4value (bool *isUndefined=nullptr)
bool mustCaptureBindableProperty () const final
void _q_notify ()
QString expressionIdentifier () const override
void expressionChanged () override
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () 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)

Static Public Member Functions

static QQmlExpressionPrivateget (QQmlExpression *expr)
static QQmlExpressionget (QQmlExpressionPrivate *expr)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
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

bool expressionFunctionValid:1
QString expression
QString url
quint16 line
quint16 column
QString name
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Additional Inherited Members

Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
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 Attributes inherited from QQmlJavaScriptExpression
QBiPointer< QObject, DeleteWatcherm_scopeObject
QForwardFieldList< QQmlJavaScriptExpressionGuard, &QQmlJavaScriptExpressionGuard::next, GuardTagactiveGuards
QTaggedPointer< QQmlDelayedError, Tagm_error
TriggerListqpropertyChangeTriggers = nullptr

Detailed Description

Definition at line 28 of file qqmlexpression_p.h.

Constructor & Destructor Documentation

◆ QQmlExpressionPrivate()

QT_BEGIN_NAMESPACE QQmlExpressionPrivate::QQmlExpressionPrivate ( )

Definition at line 17 of file qqmlexpression.cpp.

◆ ~QQmlExpressionPrivate()

QQmlExpressionPrivate::~QQmlExpressionPrivate ( )
override

Definition at line 24 of file qqmlexpression.cpp.

Member Function Documentation

◆ _q_notify()

void QQmlExpressionPrivate::_q_notify ( )

◆ expressionChanged()

void QQmlExpressionPrivate::expressionChanged ( )
overridevirtual

Implements QQmlJavaScriptExpression.

Definition at line 408 of file qqmlexpression.cpp.

◆ expressionIdentifier()

QString QQmlExpressionPrivate::expressionIdentifier ( ) const
overridevirtual

Reimplemented from QQmlJavaScriptExpression.

Definition at line 414 of file qqmlexpression.cpp.

◆ get() [1/2]

QQmlExpressionPrivate * QQmlExpressionPrivate::get ( QQmlExpression * expr)
inlinestatic

Definition at line 63 of file qqmlexpression_p.h.

◆ get() [2/2]

QQmlExpression * QQmlExpressionPrivate::get ( QQmlExpressionPrivate * expr)
inlinestatic

Definition at line 68 of file qqmlexpression_p.h.

◆ init() [1/2]

void QQmlExpressionPrivate::init ( const QQmlRefPointer< QQmlContextData > & ctxt,
const QString & expr,
QObject * me )

Definition at line 28 of file qqmlexpression.cpp.

References expressionFunctionValid.

◆ init() [2/2]

void QQmlExpressionPrivate::init ( const QQmlRefPointer< QQmlContextData > & ctxt,
QV4::Function * runtimeFunction,
QObject * me )

Definition at line 38 of file qqmlexpression.cpp.

References expressionFunctionValid.

◆ mustCaptureBindableProperty()

bool QQmlExpressionPrivate::mustCaptureBindableProperty ( ) const
inlinefinalvirtual

Reimplemented from QQmlJavaScriptExpression.

Definition at line 42 of file qqmlexpression_p.h.

◆ v4value()

QV4::ReturnedValue QQmlExpressionPrivate::v4value ( bool * isUndefined = nullptr)

Definition at line 220 of file qqmlexpression.cpp.

References expressionFunctionValid.

◆ value()

QVariant QQmlExpressionPrivate::value ( bool * isUndefined = nullptr)

Definition at line 235 of file qqmlexpression.cpp.

References QQmlIncubator::QQmlEnginePrivate.

Here is the call graph for this function:

Member Data Documentation

◆ column

quint16 QQmlExpressionPrivate::column

◆ expression

QString QQmlExpressionPrivate::expression

Definition at line 55 of file qqmlexpression_p.h.

◆ expressionFunctionValid

bool QQmlExpressionPrivate::expressionFunctionValid

Definition at line 49 of file qqmlexpression_p.h.

Referenced by init(), init(), and v4value().

◆ line

quint16 QQmlExpressionPrivate::line

Definition at line 58 of file qqmlexpression_p.h.

◆ name

QString QQmlExpressionPrivate::name

◆ url

QString QQmlExpressionPrivate::url

Definition at line 57 of file qqmlexpression_p.h.


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