5#ifndef QQMLPREVIEWOBJECTPATCH_P_H
6#define QQMLPREVIEWOBJECTPATCH_P_H
19#include <private/qv4executablecompilationunit_p.h>
21#include <QtCore/qobject.h>
36 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &oldUnit,
37 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &newUnit);
41void refreshBindings(
const QQmlRefPointer<QV4::ExecutableCompilationUnit> &oldUnit,
42 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &newUnit = {});
46 QV4::ExecutionEngine *engine,
47 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &oldUnit,
48 const QQmlRefPointer<QV4::CompiledData::CompilationUnit> &newUnit);
static void applyBindingChanges(const std::vector< QObject * > &objects, const QV4::CompiledData::CompilationUnitDiff &diff, const CuRef &oldUnit, const CuRef &newUnit)
static void installBinding(QObject *object, const CompositeLevel &level, int bindingIndex, const QString &name)
static void reshapeProperties(const std::vector< QObject * > &objects, const QV4::CompiledData::CompilationUnitDiff &diff, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static void relinkDerivedInstanceCaches(const std::vector< QObject * > &objects)
static std::vector< CompositeLevel > collectCompositeLevels(const CompositeLevel &instanceLevel, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static bool translateExpressionFunction(QQmlJavaScriptExpression *expr, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit, const QHash< QV4::Function *, QV4::Function * > &functionMap)
static bool isScriptBinding(const QV4::CompiledData::Binding *b)
static void refreshVmeMethods(const std::vector< QObject * > &objects, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static QHash< int, QSet< QString > > collectAffectedProperties(const QV4::CompiledData::CompilationUnitDiff &diff, const CuRef &oldUnit, const CuRef &newUnit)
void refreshBindings(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static QHash< QV4::Function *, QV4::Function * > buildFunctionTranslationMap(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, ReplacedContexts *replacedContexts)
static void refreshBindingPropertyData(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &cu, int objectIndex, const QQmlPropertyCache::ConstPtr &cache)
static bool propertyCountChangeAffectsDerived(const QV4::CompiledData::CompilationUnitDiff &diff, const std::vector< QObject * > &objects, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)
static bool canRebuildComponentRootInPlace(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit, int objectIndex)
static bool isRebuildableComponentRoot(QObject *object, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static bool hasChangedNonCompositeBaseType(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit, int objectIndex)
static QVarLengthArray< int, 4 > objectIndices(QObject *object, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit)
static std::vector< CompositeLevel > instanceCompositeLevels(QObject *object, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static QQmlPropertyCache::ConstPtr relinkCache(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &cu, int objectIndex, const QQmlPropertyCache::ConstPtr &actualParent)
static void relinkDerivedCaches(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &cu, const QQmlPropertyCache::ConstPtr &oldBaseCache, const QQmlPropertyCache::ConstPtr &newBaseCache)
static BindingKind bindingKind(const QV4::CompiledData::Binding *binding)
void redirectResolvedTypeReferences(QV4::ExecutionEngine *engine, const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &oldUnit, const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &newUnit)
PatchResult applyDiff(std::vector< QObject * > &objects, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static bool isComponentRoot(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &unit, int objectIndex)
static bool isTrivialDiff(const QV4::CompiledData::CompilationUnitDiff &diff, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static bool isOverriddenByDerivedLevel(const std::vector< CompositeLevel > &levels, int reloaded, const QString &name)
static void reinstallProperty(QObject *object, const std::vector< CompositeLevel > &levels, int reloaded, const QString &name)
static QQmlRefPointer< QQmlContextData > currentContext(const QQmlRefPointer< QQmlContextData > &context, const ReplacedContexts &replacedContexts)
static QQmlPropertyCache::ConstPtr nonCompositeBaseType(const QQmlPropertyCache::ConstPtr &propertyCache)
static void translateAndRefreshExpressionsRecursive(const QQmlRefPointer< QQmlContextData > &context, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit, const QHash< QV4::Function *, QV4::Function * > &functionMap)
static const QV4::CompiledData::Binding * bindingAt(const CuRef &unit, int objectIndex, quint32 bindingIndex)
static bool changeIsTrivial(const QV4::CompiledData::Change &change, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static int reloadedLevelIndex(const std::vector< CompositeLevel > &levels, int changedObjectIndex, const CuRef &newUnit)
static int bindingIndexForProperty(const QQmlRefPointer< QV4::ExecutableCompilationUnit > &cu, int objectIndex, const QString &name)
static QObject * outerRebuildTarget(QObject *object, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static void patchConstantBindings(const std::vector< QObject * > &objects, const QV4::CompiledData::CompilationUnitDiff &diff, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
static QVarLengthArray< QQmlRefPointer< QQmlContextData >, 4 > levelContexts(QObject *object, const QQmlRefPointer< QQmlContextData > &outerContext)
static void remapObjectsToNewUnit(const std::vector< QObject * > &objects, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &oldUnit, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &newUnit)
Combined button and popup list for selecting options.
QQmlRefPointer< QV4::ExecutableCompilationUnit > newCu
QQmlRefPointer< QV4::ExecutableCompilationUnit > oldCu
QQmlRefPointer< QQmlContextData > newContext
QQmlRefPointer< QQmlContextData > oldContext