6#include <PhosphorShell/phosphorshell_export.h>
51 [[nodiscard]] QQuickItem*
item() const;
67 void onIncubatorReady();
69 bool m_active = false;
74 QPointer<QQmlComponent> m_sourceComponent;
75 QQmlComponent* m_ownedComponent =
nullptr;
77 QPointer<QQuickItem> m_item;
78 QQmlIncubator* m_incubator =
nullptr;
void sourceComponentChanged()
void setActive(bool active)
void setSource(const QUrl &source)
QQuickItem * item() const
LazyLoader(QQuickItem *parent=nullptr)
Status
Definition LazyLoader.h:31
@ Null
Definition LazyLoader.h:32
@ Loading
Definition LazyLoader.h:33
@ Ready
Definition LazyLoader.h:34
@ Error
Definition LazyLoader.h:35
void setSourceComponent(QQmlComponent *component)
friend class LazyIncubator
Definition LazyLoader.h:63
QQmlComponent * sourceComponent() const
Definition Environment.h:11