![]() |
Qt 6.x
The Qt SDK
|
#include <qquickloader_p_p.h>
Definition at line 45 of file qquickloader_p_p.h.
QQuickLoaderPrivate::QQuickLoaderPrivate | ( | ) |
Definition at line 21 of file qquickloader.cpp.
QQuickLoaderPrivate::~QQuickLoaderPrivate | ( | ) |
Definition at line 27 of file qquickloader.cpp.
References disposeInitialPropertyValues(), incubator, and itemContext.
void QQuickLoaderPrivate::_q_sourceLoaded | ( | ) |
Definition at line 705 of file qquickloader.cpp.
References active, QQmlIncubator::Asynchronous, asynchronous, QQmlIncubator::AsynchronousIfNested, component, context, QQmlComponent::create(), QQmlComponent::creationContext(), disposeInitialPropertyValues(), emit, QQmlComponent::errors(), QQmlComponentPrivate::get(), incubator, QQmlComponentPrivate::isBound(), QList< T >::isEmpty(), itemContext, QQmlIncubator::Loading, loadingFromSource, qmlContext(), qmlEngine(), QQmlContext::setContextObject(), QQmlIncubator::status(), updateStatus(), and QQmlEnginePrivate::warning().
Referenced by clear(), and load().
void QQuickLoaderPrivate::_q_updateSize | ( | bool | loaderGeometryChanged = true | ) |
Definition at line 909 of file qquickloader.cpp.
References getImplicitHeight(), getImplicitWidth(), item, QQuickItem::setHeight(), QQuickItem::setSize(), QQuickItem::setWidth(), and updatingSize.
Referenced by initResize(), and itemGeometryChanged().
void QQuickLoaderPrivate::clear | ( | ) |
Definition at line 55 of file qquickloader.cpp.
References _q_sourceLoaded(), QQmlIncubator::clear(), QQmlContextData::clearContextRecursively(), component, context, QObject::deleteLater(), QObject::disconnect(), disposeInitialPropertyValues(), QQmlContextData::get(), QQuickItemPrivate::get(), incubator, item, itemContext, loadingFromSource, qmlContext(), QQmlStrongJSQObjectReference< T >::setObject(), QQuickItem::setParentItem(), QQuickItem::setVisible(), SIGNAL, SLOT, statusChanged(), and watchedChanges.
QQuickLoader::Status QQuickLoaderPrivate::computeStatus | ( | ) | const |
Definition at line 956 of file qquickloader.cpp.
References active, component, QQmlComponent::Error, QQmlIncubator::Error, QQuickLoader::Error, incubator, QQmlComponent::Loading, QQmlIncubator::Loading, QQuickLoader::Loading, QQmlComponent::Null, QQuickLoader::Null, QQuickLoader::Ready, QQmlComponent::status, and QQmlIncubator::status().
Referenced by updateStatus().
void QQuickLoaderPrivate::createComponent | ( | ) |
Definition at line 1001 of file qquickloader.cpp.
References QQmlComponent::Asynchronous, asynchronous, component, context, engine, QQmlComponent::PreferSynchronous, qmlContext(), qmlWarning(), and QQmlStrongJSQObjectReference< T >::setObject().
void QQuickLoaderPrivate::disposeInitialPropertyValues | ( | ) |
Definition at line 591 of file qquickloader.cpp.
References QV4::PersistentValue::clear(), and initialPropertyValues.
Referenced by ~QQuickLoaderPrivate(), _q_sourceLoaded(), and clear().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 121 of file qquickloader.cpp.
References QQuickItemPrivate::getImplicitHeight(), QQuickItem::height, QQuickItem::implicitHeight, and item.
Referenced by _q_updateSize(), and itemImplicitHeightChanged().
|
overridevirtual |
Reimplemented from QQuickItemPrivate.
Definition at line 110 of file qquickloader.cpp.
References QQuickItemPrivate::getImplicitWidth(), QQuickItem::implicitWidth, item, and QQuickItem::width.
Referenced by _q_updateSize(), and itemImplicitWidthChanged().
void QQuickLoaderPrivate::incubatorStateChanged | ( | QQmlIncubator::Status | status | ) |
Definition at line 667 of file qquickloader.cpp.
References QQmlIncubator::clear(), emit, QQmlIncubator::Error, QQmlIncubator::errors(), incubator, initResize(), QList< T >::isEmpty(), item, itemContext, QQmlIncubator::Loading, loadingFromSource, QQmlIncubator::Null, QQmlIncubator::object(), qCDebug, qmlEngine(), qmlobject_cast< QQuickItem * >(), QQmlIncubator::Ready, status, updateStatus(), QQmlEnginePrivate::warning(), and QQuickItemPrivate::window.
Referenced by QQuickLoaderIncubator::statusChanged().
void QQuickLoaderPrivate::initResize | ( | ) |
Definition at line 101 of file qquickloader.cpp.
References _q_updateSize(), QQuickItemPrivate::get(), item, and watchedChanges.
Referenced by incubatorStateChanged().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 35 of file qquickloader.cpp.
References _q_updateSize(), item, and QQuickItemChangeListener::itemGeometryChanged().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 49 of file qquickloader.cpp.
References getImplicitHeight().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 43 of file qquickloader.cpp.
References getImplicitWidth().
void QQuickLoaderPrivate::load | ( | ) |
Definition at line 596 of file qquickloader.cpp.
References _q_sourceLoaded(), component, QObject::connect(), emit, QQmlComponent::isLoading(), loadingFromSource, SIGNAL, SLOT, statusChanged(), and updateStatus().
Definition at line 625 of file qquickloader.cpp.
References component, d, QQmlComponentPrivate::get(), QQmlIncubatorPrivate::get(), QQuickItemPrivate::get(), QQuickItemPrivate::heightValid(), incubator, initialPropertyValues, QV4::PersistentValue::isUndefined(), item, itemContext, Q_ASSERT, qmlCallingContext, qmlContext(), qmlobject_cast< QQuickItem * >(), QQml_setParent_noEvent(), QQuickItem::setHeight(), QQuickItem::setParentItem(), QQuickItem::setWidth(), QV4::PersistentValue::value(), and QQuickItemPrivate::widthValid().
Referenced by QQuickLoaderIncubator::setInitialState().
void QQuickLoaderPrivate::updateStatus | ( | ) |
Definition at line 991 of file qquickloader.cpp.
References computeStatus(), emit, and status.
Referenced by _q_sourceLoaded(), incubatorStateChanged(), and load().
bool QQuickLoaderPrivate::active |
Definition at line 79 of file qquickloader_p_p.h.
Referenced by _q_sourceLoaded(), and computeStatus().
bool QQuickLoaderPrivate::asynchronous |
Definition at line 81 of file qquickloader_p_p.h.
Referenced by _q_sourceLoaded(), and createComponent().
QQmlStrongJSQObjectReference<QQmlComponent> QQuickLoaderPrivate::component |
Definition at line 73 of file qquickloader_p_p.h.
Referenced by _q_sourceLoaded(), clear(), computeStatus(), createComponent(), load(), and setInitialState().
QQuickLoaderIncubator* QQuickLoaderPrivate::incubator |
Definition at line 75 of file qquickloader_p_p.h.
Referenced by ~QQuickLoaderPrivate(), _q_sourceLoaded(), clear(), computeStatus(), incubatorStateChanged(), and setInitialState().
QV4::PersistentValue QQuickLoaderPrivate::initialPropertyValues |
Definition at line 76 of file qquickloader_p_p.h.
Referenced by disposeInitialPropertyValues(), and setInitialState().
QQuickItem* QQuickLoaderPrivate::item |
Definition at line 71 of file qquickloader_p_p.h.
Referenced by _q_updateSize(), clear(), getImplicitHeight(), getImplicitWidth(), incubatorStateChanged(), initResize(), itemGeometryChanged(), and setInitialState().
QQmlContext* QQuickLoaderPrivate::itemContext |
Definition at line 74 of file qquickloader_p_p.h.
Referenced by ~QQuickLoaderPrivate(), _q_sourceLoaded(), clear(), incubatorStateChanged(), and setInitialState().
bool QQuickLoaderPrivate::loadingFromSource |
Definition at line 80 of file qquickloader_p_p.h.
Referenced by _q_sourceLoaded(), clear(), incubatorStateChanged(), and load().
QObject* QQuickLoaderPrivate::object |
Definition at line 72 of file qquickloader_p_p.h.
QV4::PersistentValue QQuickLoaderPrivate::qmlCallingContext |
Definition at line 77 of file qquickloader_p_p.h.
Referenced by setInitialState().
QUrl QQuickLoaderPrivate::source |
Definition at line 70 of file qquickloader_p_p.h.
char QQuickLoaderPrivate::status |
Definition at line 86 of file qquickloader_p_p.h.
Referenced by incubatorStateChanged(), and updateStatus().
bool QQuickLoaderPrivate::updatingSize |
Definition at line 78 of file qquickloader_p_p.h.
Referenced by _q_updateSize().