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
qv4qmlcontext.cpp File Reference

(22df353c14800d2e9b6d57a9a0cb9c6baa337999)

#include "qv4qmlcontext_p.h"
#include <private/qjsvalue_p.h>
#include <private/qqmlcontext_p.h>
#include <private/qqmlengine_p.h>
#include <private/qqmlglobal_p.h>
#include <private/qqmljavascriptexpression_p.h>
#include <private/qqmllistwrapper_p.h>
#include <private/qqmltypewrapper_p.h>
#include <private/qv4compileddata_p.h>
#include <private/qv4engine_p.h>
#include <private/qv4function_p.h>
#include <private/qv4identifiertable_p.h>
#include <private/qv4lookup_p.h>
#include <private/qv4mm_p.h>
#include <private/qv4module_p.h>
#include <private/qv4objectproto_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qv4stackframe_p.h>
#include <private/qv4value_p.h>
#include <QtCore/qloggingcategory.h>
Include dependency graph for qv4qmlcontext.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY (lcQmlContext, "qt.qml.context")
 DEFINE_OBJECT_VTABLE (QQmlContextWrapper)
 DEFINE_MANAGED_VTABLE (QmlContext)
static OptionalReturnedValue searchContextProperties (QV4::ExecutionEngine *v4, const QQmlRefPointer< QQmlContextData > &context, String *name, bool *hasProperty, Value *base, QV4::Lookup *lookup, QV4::Lookup *originalLookup, QQmlEnginePrivate *ep)
template<typename Lookup>
bool performLookup (ScopedValue *result, bool *hasProperty, const Lookup &lookup)
static QV4::QObjectWrapper::Flags getQmlPropertyFlags (const Lookup *l)
static ReturnedValue revertObjectPropertyLookup (Lookup *l, ExecutionEngine *engine, Value *base)
static ReturnedValue revertObjectMethodLookup (Lookup *l, ExecutionEngine *engine, Value *base)
template<typename Call>
ReturnedValue callWithScopeObject (ExecutionEngine *engine, Value *base, Call c)
template<typename Call>
ReturnedValue callWithContextObject (ExecutionEngine *engine, Value *base, Call c)

Function Documentation

◆ callWithContextObject()

template<typename Call>
ReturnedValue callWithContextObject ( ExecutionEngine * engine,
Value * base,
Call c )

Definition at line 683 of file qv4qmlcontext.cpp.

◆ callWithScopeObject()

template<typename Call>
ReturnedValue callWithScopeObject ( ExecutionEngine * engine,
Value * base,
Call c )

Definition at line 636 of file qv4qmlcontext.cpp.

◆ DEFINE_MANAGED_VTABLE()

DEFINE_MANAGED_VTABLE ( QmlContext )

◆ DEFINE_OBJECT_VTABLE()

DEFINE_OBJECT_VTABLE ( QQmlContextWrapper )

◆ getQmlPropertyFlags()

QV4::QObjectWrapper::Flags getQmlPropertyFlags ( const Lookup * l)
static

Definition at line 108 of file qv4qmlcontext.cpp.

◆ performLookup()

template<typename Lookup>
bool performLookup ( ScopedValue * result,
bool * hasProperty,
const Lookup & lookup )

Definition at line 97 of file qv4qmlcontext.cpp.

◆ Q_STATIC_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_STATIC_LOGGING_CATEGORY ( lcQmlContext ,
"qt.qml.context"  )

◆ revertObjectMethodLookup()

ReturnedValue revertObjectMethodLookup ( Lookup * l,
ExecutionEngine * engine,
Value * base )
static

Definition at line 627 of file qv4qmlcontext.cpp.

◆ revertObjectPropertyLookup()

ReturnedValue revertObjectPropertyLookup ( Lookup * l,
ExecutionEngine * engine,
Value * base )
static

Definition at line 619 of file qv4qmlcontext.cpp.

◆ searchContextProperties()

OptionalReturnedValue searchContextProperties ( QV4::ExecutionEngine * v4,
const QQmlRefPointer< QQmlContextData > & context,
String * name,
bool * hasProperty,
Value * base,
QV4::Lookup * lookup,
QV4::Lookup * originalLookup,
QQmlEnginePrivate * ep )
static

Definition at line 52 of file qv4qmlcontext.cpp.