Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqml.cpp File Reference
#include "qqml.h"
#include <QtQml/qqmlprivate.h>
#include <private/qjsvalue_p.h>
#include <private/qqmlengine_p.h>
#include <private/qqmlmetatype_p.h>
#include <private/qqmlmetatypedata_p.h>
#include <private/qqmltype_p_p.h>
#include <private/qqmltypemodule_p.h>
#include <private/qqmlcomponent_p.h>
#include <private/qqmltypewrapper_p.h>
#include <private/qqmlvaluetypewrapper_p.h>
#include <private/qv4lookup_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qv4identifiertable_p.h>
#include <private/qv4errorobject_p.h>
#include <private/qqmlbuiltinfunctions_p.h>
#include <private/qqmlfinalizer_p.h>
#include <private/qqmlloggingcategory_p.h>
#include <QtCore/qmutex.h>
+ Include dependency graph for qqml.cpp:

Go to the source code of this file.

Namespaces

namespace  QQmlPrivate
 

Typedefs

using QQmlPrivate::QmlContextPropertyGetter = QV4::ReturnedValue(*)(QV4::Lookup *l, QV4::ExecutionEngine *engine, QV4::Value *thisObject)
 

Enumerations

enum class  QQmlPrivate::ObjectPropertyResult { QQmlPrivate::OK , QQmlPrivate::NeedsInit , QQmlPrivate::Deleted }
 
enum class  QQmlPrivate::ObjectLookupResult {
  QQmlPrivate::Failure , QQmlPrivate::Object , QQmlPrivate::Fallback , QQmlPrivate::ObjectAsVariant ,
  QQmlPrivate::FallbackAsVariant
}
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (lcQml)
 
 Q_DECLARE_LOGGING_CATEGORY (lcJs)
 
void qmlExecuteDeferred (QObject *object)
 
QQmlContextqmlContext (const QObject *obj)
 
QQmlEngineqmlEngine (const QObject *obj)
 
static QObjectresolveAttachedProperties (QQmlAttachedPropertiesFunc pf, QQmlData *data, QObject *object, bool create)
 
QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction (QObject *object, const QMetaObject *attachedMetaObject)
 
QObjectqmlAttachedPropertiesObject (QObject *object, QQmlAttachedPropertiesFunc func, bool create)
 
QObjectqmlExtendedObject (QObject *object)
 
int qmlRegisterUncreatableMetaObject (const QMetaObject &staticMetaObject, const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &reason)
 
void qmlClearTypeRegistrations ()
 
bool qmlProtectModule (const char *uri, int majVersion)
 
void qmlRegisterModule (const char *uri, int versionMajor, int versionMinor)
 
static QQmlDirParser::Import resolveImport (const QString &uri, int importMajor, int importMinor)
 
static QTypeRevision resolveModuleVersion (int moduleMajor)
 
int qmlTypeId (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
static bool checkSingletonInstance (QQmlEngine *engine, QObject *instance)
 
static QVector< QTypeRevisionavailableRevisions (const QMetaObject *metaObject)
 
template<typename Registration >
void assignVersions (Registration *registration, QTypeRevision revision, QTypeRevision defaultVersion)
 
static QVector< QTypeRevisionprepareRevisions (const QMetaObject *metaObject, QTypeRevision added)
 
static void uniqueRevisions (QVector< QTypeRevision > *revisions, QTypeRevision defaultVersion, QTypeRevision added)
 
int qmlRegisterTypeNotAvailable (const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &message)
 
template<>
void QQmlPrivate::qmlRegisterTypeAndRevisions< QQmlTypeNotAvailable, void > (const char *uri, int versionMajor, const QMetaObject *classInfoMetaObject, QVector< int > *qmlTypeIds, const QMetaObject *extension, bool)
 
static QQmlPropertyCaptureQQmlPrivate::propertyCapture (const QQmlContextData *qmlContext)
 
static void QQmlPrivate::captureFallbackProperty (QObject *object, int coreIndex, int notifyIndex, bool isConstant, const QQmlContextData *qmlContext)
 
static void QQmlPrivate::captureObjectProperty (QObject *object, const QQmlPropertyCache *propertyCache, const QQmlPropertyData *property, QQmlContextData *qmlContext)
 
static bool QQmlPrivate::inherits (const QQmlPropertyCache *descendent, const QQmlPropertyCache *ancestor)
 
template<bool StrictType = false>
ObjectPropertyResult QQmlPrivate::loadObjectProperty (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
static ObjectPropertyResult QQmlPrivate::loadFallbackProperty (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
ObjectPropertyResult QQmlPrivate::loadObjectAsVariant (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
ObjectPropertyResult QQmlPrivate::loadFallbackAsVariant (QV4::Lookup *l, QObject *object, void *target, QQmlContextData *qmlContext)
 
template<bool StrictType, typename Op >
static ObjectPropertyResult QQmlPrivate::changeObjectProperty (QV4::Lookup *l, QObject *object, Op op)
 
template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::resetObjectProperty (QV4::Lookup *l, QObject *object)
 
template<bool StrictType = false>
static ObjectPropertyResult QQmlPrivate::storeObjectProperty (QV4::Lookup *l, QObject *object, void *value)
 
template<typename Op >
static ObjectPropertyResult QQmlPrivate::changeFallbackProperty (QV4::Lookup *l, QObject *object, Op op)
 
static ObjectPropertyResult QQmlPrivate::storeFallbackProperty (QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult QQmlPrivate::resetFallbackProperty (QV4::Lookup *l, QObject *object)
 
static bool QQmlPrivate::isTypeCompatible (QMetaType lookupType, QMetaType propertyType)
 
static ObjectPropertyResult QQmlPrivate::storeObjectAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectPropertyResult QQmlPrivate::storeFallbackAsVariant (QV4::ExecutionEngine *v4, QV4::Lookup *l, QObject *object, void *value)
 
static ObjectLookupResult QQmlPrivate::initObjectLookup (const AOTCompiledContext *aotContext, QV4::Lookup *l, QObject *object, QMetaType type)
 
static bool QQmlPrivate::initValueLookup (QV4::Lookup *l, QV4::ExecutableCompilationUnit *compilationUnit, const QMetaObject *metaObject, QMetaType type)
 
static void QQmlPrivate::amendException (QV4::ExecutionEngine *engine)
 
static bool QQmlPrivate::isUndefined (const void *value, QMetaType type)
 
template<QmlContextPropertyGetter qmlContextPropertyGetter>
static void QQmlPrivate::initTypeWrapperLookup (const AOTCompiledContext *context, QV4::Lookup *l, uint importNamespace)
 

Function Documentation

◆ assignVersions()

template<typename Registration >
void assignVersions ( Registration *  registration,
QTypeRevision  revision,
QTypeRevision  defaultVersion 
)

Definition at line 432 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), QTypeRevision::fromVersion(), QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QTypeRevision::majorVersion(), QTypeRevision::minorVersion(), and registration.

Referenced by QQmlPrivate::qmlregister().

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

◆ availableRevisions()

static QVector< QTypeRevision > availableRevisions ( const QMetaObject metaObject)
static

Definition at line 402 of file qqml.cpp.

References QList< T >::append(), availableRevisions(), QTypeRevision::fromEncodedVersion(), metaObject(), method, and property.

Referenced by availableRevisions(), prepareRevisions(), and QQmlPrivate::qmlregister().

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

◆ checkSingletonInstance()

static bool checkSingletonInstance ( QQmlEngine engine,
QObject instance 
)
static

Definition at line 342 of file qqml.cpp.

References engine, error, QQmlEnginePrivate::get(), QStringLiteral, QObject::thread(), and QQmlEnginePrivate::warning().

Referenced by QQmlPrivate::SingletonInstanceFunctor::operator()().

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

◆ prepareRevisions()

static QVector< QTypeRevision > prepareRevisions ( const QMetaObject metaObject,
QTypeRevision  added 
)
static

Definition at line 443 of file qqml.cpp.

References availableRevisions(), and metaObject().

Referenced by QQmlPrivate::qmlregister().

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

◆ Q_DECLARE_LOGGING_CATEGORY() [1/2]

Q_DECLARE_LOGGING_CATEGORY ( lcJs  )

◆ Q_DECLARE_LOGGING_CATEGORY() [2/2]

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( lcQml  )

◆ qmlAttachedPropertiesFunction()

QQmlAttachedPropertiesFunc qmlAttachedPropertiesFunction ( QObject object,
const QMetaObject attachedMetaObject 
)

Definition at line 102 of file qqml.cpp.

References QQmlMetaType::attachedPropertiesFunc(), engine, QQmlEnginePrivate::get(), and qmlEngine().

Referenced by attachedObject(), and qmlAttachedPropertiesObject().

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

◆ qmlAttachedPropertiesObject()

QObject * qmlAttachedPropertiesObject ( QObject object,
QQmlAttachedPropertiesFunc  func,
bool  create 
)

Definition at line 110 of file qqml.cpp.

References create(), QQmlData::get(), and resolveAttachedProperties().

Referenced by attachedObject(), QQmlPropertyPrivate::initProperty(), QQmlPrivate::AOTCompiledContext::loadAttachedLookup(), QV4::QQmlTypeWrapper::object(), qmlAttachedPropertiesObject(), QV4::QQmlTypeWrapper::toVariant(), QV4::QQmlTypeWrapper::virtualGet(), and QV4::QQmlTypeWrapper::virtualPut().

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

◆ qmlClearTypeRegistrations()

void qmlClearTypeRegistrations ( )

Definition at line 210 of file qqml.cpp.

References QQmlEnginePrivate::baseModulesUninitialized, QQmlMetaType::clearTypeRegistrations(), and qmlClearEnginePlugins().

Referenced by runTests(), and QQuickControlsTestUtils::QQuickStyleHelper::updateStyle().

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

◆ qmlContext()

QQmlContext * qmlContext ( const QObject obj)
related

Definition at line 71 of file qqml.cpp.

Referenced by QQuickPlatformColorDialog::QQuickPlatformColorDialog(), QQuickPlatformFileDialog::QQuickPlatformFileDialog(), QQuickPlatformFolderDialog::QQuickPlatformFolderDialog(), QQuickPlatformFontDialog::QQuickPlatformFontDialog(), QQuickPlatformMessageDialog::QQuickPlatformMessageDialog(), QV4::Script::Script(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickParentChange::actions(), QQuickAnchorChanges::actions(), QQuickPropertyChanges::actions(), QQmlWatcher::addWatch(), QQuickText::baseUrl(), QQuickTextEdit::baseUrl(), QQuickMenuPrivate::beginCreateItem(), QQuickMenuBarPrivate::beginCreateItem(), callWithContextObject(), callWithScopeObject(), QQmlPrivate::captureFallbackProperty(), QQmlPrivate::captureObjectProperty(), QQuickPropertyChanges::changeExpression(), QQmlDelegateModel::classBegin(), QQuickPopup::classBegin(), QQuickRangeSlider::classBegin(), QQuickScrollBar::classBegin(), QQuickSpinBox::classBegin(), QDeclarativeGeoMapItemView::classBegin(), QQuickLoaderPrivate::clear(), QQmlBind::componentComplete(), QQuickTextEdit::componentComplete(), QQmlBinding::create(), createBindingInScope(), QQuickLoaderPrivate::createComponent(), QQuickItemViewPrivate::createComponentItem(), QQuickSwipePrivate::createDelegateItem(), QQuickFolderBreadcrumbBarPrivate::createDelegateItem(), createDimmer(), QQmlPropertyBinding::createFromScriptString(), QQuickSplitViewPrivate::createHandleItem(), QQuickPathViewPrivate::createHighlight(), QQuickIconLabelPrivate::createImage(), QQuickAbstractAnimationPrivate::createProperty(), QQmlJavaScriptExpression::createQmlBinding(), QQuickDialogButtonBoxPrivate::createStandardButton(), QQuickTableViewPrivate::createWrapperModel(), QQmlComponent::creationContext(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlBindPrivate::decodeBinding(), QQuickTextPrivate::ensureDoc(), QQmlJavaScriptExpression::evalFunction(), QQuickVisualTestUtils::findItem(), QV4::QObjectWrapper::findProperty(), QV4::QObjectWrapper::findProperty(), QQuickStackElement::fromString(), QQuick3DPhysicsHeightFieldManager::getHeightField(), QQuick3DPhysicsMeshManager::getMesh(), QV4::getPropertyFromImports(), QQuickListViewPrivate::getSectionItem(), QuickTestResult::grabImage(), QQuickFileDialogDelegatePrivate::highlightFile(), QQmlExpressionPrivate::init(), QQuickTumblerAttachedPrivate::init(), QQuickStackElement::initialize(), QQmlComponentPrivate::initializeObjectWithInitialProperties(), QQDMIncubationTask::initializeRequiredProperties(), QQuickContainer::isContent(), QQuickFolderBreadcrumbBar::isContent(), QQuickSplitView::isContent(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickStackElement::load(), QQmlPrivate::loadFallbackAsVariant(), QQmlPrivate::loadFallbackProperty(), QQmlPrivate::loadObjectAsVariant(), QQmlPrivate::loadObjectProperty(), QQuickImageBase::loadPixmap(), QQuickTextDocumentWithImageResources::loadResource(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QQmlContextWrapper::lookupScript(), QV4::QQmlContextWrapper::lookupType(), QQmlPrivate::propertyCapture(), QQuickMediaPlayer::qmlSetSource(), QQuickSoundEffect::qmlSetSource(), QQmlXmlListModel::reload(), QQuickText::resetBaseUrl(), QQuickTextEdit::resetBaseUrl(), JavaScriptJob::run(), ValueLookupJob::run(), QuickTestImageObject::save(), QQmlDebugTranslationServicePrivate::sendTranslatableTextOccurrences(), QQuickLoader::setActive(), QQuick3DLoader::setActive(), QQuickPageIndicatorPrivate::setContextProperty(), QQuickItemView::setDelegate(), QQuickPathView::setDelegate(), QQuickRepeater::setDelegate(), QQuick3DRepeater::setDelegate(), QQmlComponentPrivate::setInitialProperties(), QV4::QmlIncubatorObject::setInitialState(), QQuickLoaderPrivate::setInitialState(), QQuickTextPrivate::setLineGeometry(), QQuickItemView::setModel(), QQuickPathView::setModel(), QQuickRepeater::setModel(), QQuick3DRepeater::setModel(), QQmlBind::setObject(), QQmlBind::setProperty(), QV4::QObjectWrapper::setQmlProperty(), QQuickWorkerScript::setSource(), QQuick3DRuntimeLoader::setSource(), QQuickFontLoader::setSource(), QQuick3DAmbientSound::setSource(), QQuick3DSpatialSound::setSource(), QQuickPdfDocument::setSource(), QQmlJavaScriptExpression::setupFunction(), QQuickTreeViewDelegatePrivate::toggleExpanded(), QQuick3DModel::translateMeshSource(), QQuickIconImagePrivate::updateIcon(), QQuickTextPrivate::updateLayout(), QQuick3DCustomMaterial::updateSpatialNode(), QQuick3DModel::updateSpatialNode(), QQuick3DTexture::updateSpatialNode(), QV4::QObjectWrapper::virtualGet(), QV4::QObjectWrapper::virtualGetOwnProperty(), QV4::QObjectWrapper::virtualPut(), QV4::QObjectWrapper::virtualResolveLookupGetter(), and QV4::QQmlTypeWrapper::virtualResolveLookupGetter().

◆ qmlEngine()

QQmlEngine * qmlEngine ( const QObject obj)
related

Definition at line 76 of file qqml.cpp.

Referenced by QQmlDataBlob::QQmlDataBlob(), QQmlInfo::~QQmlInfo(), QQuickLoaderPrivate::_q_sourceLoaded(), QQuickPropertyChanges::actions(), QQmlPreviewHandler::addEngine(), QQuickCustomAffector::affectSystem(), QQuickDesignerSupportProperties::allPropertyNames(), QQmlListModelParser::applyBindings(), QuickTestUtil::callerFile(), QuickTestUtil::callerLine(), QQuickWindowQmlImpl::classBegin(), QQmlTableModel::clear(), QQuickCanvasItem::componentComplete(), QTestRootObject::create(), createBindingInScope(), QQuickControlsTestUtils::ComponentCreator::createComponent(), QQmlTableModel::data(), QQuickParticleEmitter::emitWindow(), QQuickTrailEmitter::emitWindow(), QQmlDebugTranslationServiceImpl::engineAboutToBeAdded(), QQmlPreviewServiceImpl::engineAboutToBeAdded(), QQmlProfilerServiceImpl::engineAboutToBeAdded(), QQmlDebugTranslationServiceImpl::engineAboutToBeRemoved(), QQmlPreviewServiceImpl::engineAboutToBeRemoved(), QQmlBinding::evaluate(), QQmlJavaScriptExpression::evaluate(), QQmlJavaScriptExpression::evaluate(), QQuickSpinBoxPrivate::evaluateTextFromValue(), QQuickSpinBoxPrivate::evaluateValueFromText(), QQuickWorkerScript::event(), QQuickStackView::find(), findAttachedParent(), QQuickStackElement::fromStackViewArg(), QQuickStackElement::fromString(), QQmlEnginePrivate::get(), QV4::QObjectSlotDispatcher::impl(), QQuickLoaderPrivate::incubatorStateChanged(), QQuickContext2D::init(), QQuickStackElement::initialize(), QQuickToolTipAttachedPrivate::instance(), QQuickImageBase::itemChange(), QQuickAnimatedImage::load(), QQuickBorderImage::load(), QQuickPdfPageImage::load(), QQuickCanvasItem::loadImage(), QQuickImageBase::loadPixmap(), QV4::QQmlContextWrapper::lookupIdObject(), QV4::QQmlTypeWrapper::metaObject(), QV4Include::method_include(), QV4::QQmlTypeWrapper::object(), QQuickStackViewPrivate::parseElements(), propertyNameListForWritableProperties(), QQmlComponent::qmlAttachedProperties(), qmlAttachedPropertiesFunction(), QQmlPreviewHandler::removeEngine(), JavaScriptJob::run(), QQmlTableModel::setData(), QQuickDragAttached::setImageSource(), QQmlEnginePrivate::setInternalContext(), QQuickLoader::setSource(), QQuickLoader::setSource(), QV4::QQmlTypeWrapper::singletonObject(), QQmlBinding::slowWrite(), QQuickSpinBox::textFromValue(), QV4::QQmlTypeWrapper::toVariant(), QuickTestUtil::typeName(), QQmlBinding::update(), QQuickMultiEffectPrivate::updateBlurItemsAmount(), QQuickCanvasItem::updatePolish(), QQuickShaderEffectPrivate::updatePolish(), QQuickParticleData::v4Value(), QQuickSpinBox::valueFromText(), and QV4::ModelObject::virtualGet().

◆ qmlExecuteDeferred()

void qmlExecuteDeferred ( QObject object)

This method completes the setup of all deferred properties of object. Deferred properties are declared with Q_CLASSINFO("DeferredPropertyNames", "comma,separated,property,list");

Any binding to a deferred property is not executed when the object is instantiated, but only when completion is requested with qmlExecuteDeferred, or by manually calling QQmlComponentPrivate::beginDeferred and completeDeferred.

See also
QV4::CompiledData::Binding::IsDeferredBinding, QV4::CompiledData::Object::HasDeferredBindings, QQmlData::deferData, QQmlObjectCreator::setupBindings

Definition at line 48 of file qqml.cpp.

References QQmlComponentPrivate::beginDeferred(), QQmlComponentPrivate::completeDeferred(), QQmlData::get(), QQmlEnginePrivate::get(), and state.

Referenced by QQuickState::apply(), QQuickStatePrivate::generateActionList(), QQuickTransition::prepare(), prepareTransition(), QQuickSwipeTransitionManager::transition(), QQuickDelayTransitionManager::transition(), and QQuickBehavior::write().

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

◆ qmlExtendedObject()

QObject * qmlExtendedObject ( QObject object)

Definition at line 125 of file qqml.cpp.

References QQmlPrivate::qmlExtendedObject().

Referenced by QQuickPdfDocument::classBegin().

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

◆ qmlProtectModule()

bool qmlProtectModule ( const char *  uri,
int  majVersion 
)

Definition at line 218 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), QString::fromUtf8(), and QQmlMetaType::protectModule().

+ Here is the call graph for this function:

◆ qmlRegisterModule()

void qmlRegisterModule ( const char *  uri,
int  versionMajor,
int  versionMinor 
)

Definition at line 225 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::registerModule().

Referenced by QWaylandCompositorIviApplicationPlugin::defineModule(), QWaylandCompositorPresentationTimePlugin::defineModule(), QQtWaylandShellPlugin::defineModule(), QWaylandCompositorWlShellPlugin::defineModule(), QWaylandCompositorXdgShellPlugin::defineModule(), qml_register_types_QtQml(), and QWaylandTextureSharingPlugin::registerTypes().

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

◆ qmlRegisterTypeNotAvailable()

int qmlRegisterTypeNotAvailable ( const char *  uri,
int  versionMajor,
int  versionMinor,
const char *  qmlName,
const QString message 
)

Definition at line 759 of file qqml.cpp.

◆ qmlRegisterUncreatableMetaObject()

int qmlRegisterUncreatableMetaObject ( const QMetaObject staticMetaObject,
const char *  uri,
int  versionMajor,
int  versionMinor,
const char *  qmlName,
const QString reason 
)

Definition at line 175 of file qqml.cpp.

References QQmlPrivate::RegisterType::CurrentVersion, QTypeRevision::fromVersion(), QQmlPrivate::None, QQmlPrivate::qmlregister(), QQmlPrivate::TypeRegistration, and QTypeRevision::zero().

+ Here is the call graph for this function:

◆ qmlTypeId()

int qmlTypeId ( const char *  uri,
int  versionMajor,
int  versionMinor,
const char *  qmlName 
)

Definition at line 337 of file qqml.cpp.

References QTypeRevision::fromVersion(), and QQmlMetaType::typeId().

Referenced by QQmlMetaType::qmlTypeById(), and QQmlEngine::singletonInstance().

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

◆ resolveAttachedProperties()

static QObject * resolveAttachedProperties ( QQmlAttachedPropertiesFunc  pf,
QQmlData data,
QObject object,
bool  create 
)
static

Definition at line 84 of file qqml.cpp.

References create().

Referenced by qmlAttachedPropertiesObject().

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

◆ resolveImport()

static QQmlDirParser::Import resolveImport ( const QString uri,
int  importMajor,
int  importMinor 
)
static

Definition at line 230 of file qqml.cpp.

References QQmlDirParser::Import::Auto, QQmlDirParser::Import::Default, QTypeRevision::fromMajorVersion(), QTypeRevision::fromVersion(), QQmlModuleImportAuto, and QQmlModuleImportLatest.

Referenced by QQmlEngine::qmlRegisterModuleImport(), and QQmlEngine::qmlUnregisterModuleImport().

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

◆ resolveModuleVersion()

static QTypeRevision resolveModuleVersion ( int  moduleMajor)
static

Definition at line 241 of file qqml.cpp.

References QTypeRevision::fromMajorVersion(), and QQmlModuleImportModuleAny.

Referenced by QQmlEngine::qmlRegisterModuleImport(), and QQmlEngine::qmlUnregisterModuleImport().

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

◆ uniqueRevisions()

static void uniqueRevisions ( QVector< QTypeRevision > *  revisions,
QTypeRevision  defaultVersion,
QTypeRevision  added 
)
static

Definition at line 450 of file qqml.cpp.

References QList< T >::append(), QList< T >::begin(), QList< T >::end(), QList< T >::erase(), QTypeRevision::fromVersion(), QTypeRevision::hasMajorVersion(), it, QTypeRevision::majorVersion(), and QTypeRevision::minorVersion().

Referenced by QQmlPrivate::qmlregister().

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