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
QQmlPreview Namespace Reference

Classes

struct  CompositeLevel
class  BindingPatchContext
struct  ObjectAndIndex

Typedefs

using ReboundBindings = QHash<QString, const QV4::CompiledData::Binding *>

Functions

static bool functionBelongsToObject (const QV4::Function *f, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &cu, int objectIndex)
static bool isExternalBinding (const QQmlAnyBinding &binding, const std::vector< CompositeLevel > &internalUnits, QObject *target)
static QObjectpropertyToPropertySource (const QQmlAnyBinding &binding)
static ReboundBindings reboundBindings (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, int cuIndex)
static int reboundSubObjectIndex (const ReboundBindings &rebound, const QString &name, QV4::CompiledData::Binding::Type type)
static QVarLengthArray< int, 4 > objectIndices (QObject *object, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)
static QQmlPropertyCache::ConstPtr nonCompositeBaseType (const QQmlPropertyCache::ConstPtr &propertyCache)
static bool hasChangedNonCompositeBaseType (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit, int objectIndex)
static std::vector< CompositeLevelcollectCompositeLevels (const CompositeLevel &instanceLevel, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static void rebuildObject (QObject *object, int cuIndex, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
bool applyDiff (std::vector< QObject * > &objects, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static bool clearOldExpressionFunction (QQmlJavaScriptExpression *expr, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)
static void cleanAndRefreshExpressionsRecursive (const QQmlRefPointer< QQmlContextData > &context, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)
void refreshBindings (const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)

Typedef Documentation

◆ ReboundBindings

Function Documentation

◆ applyDiff()

bool QQmlPreview::applyDiff ( std::vector< QObject * > & objects,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & newUnit )

Definition at line 275 of file qqmlpreviewobjectpatch.cpp.

◆ cleanAndRefreshExpressionsRecursive()

void QQmlPreview::cleanAndRefreshExpressionsRecursive ( const QQmlRefPointer< QQmlContextData > & context,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit )
static

Definition at line 427 of file qqmlpreviewobjectpatch.cpp.

◆ clearOldExpressionFunction()

bool QQmlPreview::clearOldExpressionFunction ( QQmlJavaScriptExpression * expr,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit )
static

Definition at line 412 of file qqmlpreviewobjectpatch.cpp.

◆ collectCompositeLevels()

std::vector< CompositeLevel > QQmlPreview::collectCompositeLevels ( const CompositeLevel & instanceLevel,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & newUnit )
static

Definition at line 85 of file qqmlpreviewobjectpatch.cpp.

◆ functionBelongsToObject()

bool QQmlPreview::functionBelongsToObject ( const QV4::Function * f,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & cu,
int objectIndex )
static

Definition at line 29 of file qqmlpreviewbindingpatchcontext.cpp.

◆ hasChangedNonCompositeBaseType()

bool QQmlPreview::hasChangedNonCompositeBaseType ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & newUnit,
int objectIndex )
static

Definition at line 57 of file qqmlpreviewobjectpatch.cpp.

◆ isExternalBinding()

bool QQmlPreview::isExternalBinding ( const QQmlAnyBinding & binding,
const std::vector< CompositeLevel > & internalUnits,
QObject * target )
static

Definition at line 59 of file qqmlpreviewbindingpatchcontext.cpp.

◆ nonCompositeBaseType()

QQmlPropertyCache::ConstPtr QQmlPreview::nonCompositeBaseType ( const QQmlPropertyCache::ConstPtr & propertyCache)
static

Definition at line 46 of file qqmlpreviewobjectpatch.cpp.

◆ objectIndices()

QVarLengthArray< int, 4 > QQmlPreview::objectIndices ( QObject * object,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit )
static

Definition at line 26 of file qqmlpreviewobjectpatch.cpp.

References objectIndices().

Referenced by objectIndices().

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

◆ propertyToPropertySource()

QObject * QQmlPreview::propertyToPropertySource ( const QQmlAnyBinding & binding)
static

Definition at line 124 of file qqmlpreviewbindingpatchcontext.cpp.

◆ reboundBindings()

ReboundBindings QQmlPreview::reboundBindings ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & unit,
int cuIndex )
static

Definition at line 720 of file qqmlpreviewbindingpatchcontext.cpp.

◆ reboundSubObjectIndex()

int QQmlPreview::reboundSubObjectIndex ( const ReboundBindings & rebound,
const QString & name,
QV4::CompiledData::Binding::Type type )
static

Definition at line 742 of file qqmlpreviewbindingpatchcontext.cpp.

◆ rebuildObject()

void QQmlPreview::rebuildObject ( QObject * object,
int cuIndex,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit,
const QQmlRefPointer< QV4::ExecutableCompilationUnit > & newUnit )
static

Definition at line 132 of file qqmlpreviewobjectpatch.cpp.

◆ refreshBindings()

void QQmlPreview::refreshBindings ( const QQmlRefPointer< QV4::ExecutableCompilationUnit > & oldUnit)

Definition at line 439 of file qqmlpreviewobjectpatch.cpp.