Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QQuickStackElement Class Reference

#include <qquickstackelement_p_p.h>

+ Inheritance diagram for QQuickStackElement:
+ Collaboration diagram for QQuickStackElement:

Public Member Functions

 ~QQuickStackElement ()
 
bool load (QQuickStackView *parent)
 
void incubate (QObject *object, RequiredProperties *requiredProperties)
 
void initialize (RequiredProperties *requiredProperties)
 
void setIndex (int index)
 
void setView (QQuickStackView *view)
 
void setStatus (QQuickStackView::Status status)
 
void setVisible (bool visible)
 
void itemDestroyed (QQuickItem *item) override
 
- Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemGeometryChanged (QQuickItem *, QQuickGeometryChange, const QRectF &)
 
virtual void itemSiblingOrderChanged (QQuickItem *)
 
virtual void itemVisibilityChanged (QQuickItem *)
 
virtual void itemEnabledChanged (QQuickItem *)
 
virtual void itemOpacityChanged (QQuickItem *)
 
virtual void itemChildAdded (QQuickItem *, QQuickItem *)
 
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
 
virtual void itemParentChanged (QQuickItem *, QQuickItem *)
 
virtual void itemRotationChanged (QQuickItem *)
 
virtual void itemImplicitWidthChanged (QQuickItem *)
 
virtual void itemImplicitHeightChanged (QQuickItem *)
 
virtual void itemFocusChanged (QQuickItem *, Qt::FocusReason)
 
virtual QQuickAnchorsPrivateanchorPrivate ()
 

Static Public Member Functions

static QQuickStackElementfromString (const QString &str, QQuickStackView *view, QString *error)
 
static QQuickStackElementfromObject (QObject *object, QQuickStackView *view, QString *error)
 
static QQuickStackElementfromStackViewArg (QQuickStackView *view, QQuickStackViewArg arg)
 

Public Attributes

int index = -1
 
bool init = false
 
bool removal = false
 
bool ownItem = false
 
bool ownComponent = false
 
bool widthValid = false
 
bool heightValid = false
 
QQmlComponentcomponent = nullptr
 
QQuickStackViewview = nullptr
 
QPointer< QQuickItemoriginalParent
 
QQuickStackView::Status status = QQuickStackView::Inactive
 
QV4::PersistentValue properties
 
QV4::PersistentValue qmlCallingContext
 
QQuickItemitem
 

Detailed Description

Definition at line 35 of file qquickstackelement_p_p.h.

Constructor & Destructor Documentation

◆ ~QQuickStackElement()

QQuickStackElement::~QQuickStackElement ( )

Member Function Documentation

◆ fromObject()

QQuickStackElement * QQuickStackElement::fromObject ( QObject * object,
QQuickStackView * view,
QString * error )
static

Definition at line 110 of file qquickstackelement.cpp.

References component, error, item, originalParent, QQuickItem::parentItem(), QQmlMetaType::prettyTypeName(), Q_UNUSED, qobject_cast< QQuickItem * >(), QStringLiteral, and view.

Referenced by QQuickStackView::componentComplete(), and QQuickStackViewPrivate::createElement().

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

◆ fromStackViewArg()

QQuickStackElement * QQuickStackElement::fromStackViewArg ( QQuickStackView * view,
QQuickStackViewArg arg )
static

Definition at line 130 of file qquickstackelement.cpp.

References arg, component, item, originalParent, ownComponent, QQuickItem::parentItem(), Q_ASSERT, qFatal, qmlEngine(), and view.

Referenced by QQuickStackViewPrivate::parseElements().

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

◆ fromString()

QQuickStackElement * QQuickStackElement::fromString ( const QString & str,
QQuickStackView * view,
QString * error )
static

Definition at line 93 of file qquickstackelement.cpp.

References component, error, QUrl::isRelative(), QUrl::isValid(), ownComponent, qmlContext(), qmlEngine(), QStringLiteral, QQmlContext::resolvedUrl(), str, url, and view.

Referenced by QQuickStackView::componentComplete(), and QQuickStackViewPrivate::createElement().

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

◆ incubate()

void QQuickStackElement::incubate ( QObject * object,
RequiredProperties * requiredProperties )

Definition at line 185 of file qquickstackelement.cpp.

References QJSEngine::CppOwnership, initialize(), item, qmlobject_cast< QQuickItem * >(), QJSEngine::setObjectOwnership(), QObject::setParent(), and view.

Referenced by QQuickStackIncubator::setInitialState().

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

◆ initialize()

◆ itemDestroyed()

void QQuickStackElement::itemDestroyed ( QQuickItem * item)
overridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 350 of file qquickstackelement.cpp.

References item.

◆ load()

bool QQuickStackElement::load ( QQuickStackView * parent)

Definition at line 155 of file qquickstackelement.cpp.

References component, QObject::connect(), context, QQmlComponent::create(), QQmlComponent::creationContext(), QQmlComponent::Error, QQmlComponent::errorString(), QQuickStackViewPrivate::get(), initialize(), QQmlComponent::isError(), QQmlComponent::isLoading(), item, load(), ownItem, qmlContext(), QQmlComponent::Ready, setView(), status, QQmlComponent::statusChanged(), QString::trimmed(), and view.

Referenced by QQuickStackView::find(), QQuickStackView::get(), load(), QQuickStackViewPrivate::popElements(), and QQuickStackViewPrivate::pushElements().

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

◆ setIndex()

void QQuickStackElement::setIndex ( int index)

Definition at line 237 of file qquickstackelement.cpp.

References emit, and QQuickStackViewAttached::indexChanged().

+ Here is the call graph for this function:

◆ setStatus()

void QQuickStackElement::setStatus ( QQuickStackView::Status status)

Definition at line 263 of file qquickstackelement.cpp.

References QQuickStackViewAttached::activated(), QQuickStackView::Activating, QQuickStackViewAttached::activating(), QQuickStackView::Active, QQuickStackViewAttached::deactivated(), QQuickStackView::Deactivating, QQuickStackViewAttached::deactivating(), emit, QQuickStackView::Inactive, status, and QQuickStackViewAttached::statusChanged().

Referenced by QQuickStackView::componentComplete().

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

◆ setView()

void QQuickStackElement::setView ( QQuickStackView * view)

Definition at line 250 of file qquickstackelement.cpp.

References emit, view, and QQuickStackViewAttached::viewChanged().

Referenced by load().

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

◆ setVisible()

void QQuickStackElement::setVisible ( bool visible)

Definition at line 296 of file qquickstackelement.cpp.

References QQuickStackViewAttachedPrivate::get(), item, QT_CONFIG, and QQuickItem::setVisible().

Referenced by ~QQuickStackElement(), and QQuickStackViewPrivate::setCurrentItem().

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

Member Data Documentation

◆ component

QQmlComponent* QQuickStackElement::component = nullptr

◆ heightValid

bool QQuickStackElement::heightValid = false

◆ index

int QQuickStackElement::index = -1

◆ init

bool QQuickStackElement::init = false

Definition at line 69 of file qquickstackelement_p_p.h.

Referenced by initialize().

◆ item

◆ originalParent

QPointer<QQuickItem> QQuickStackElement::originalParent

Definition at line 77 of file qquickstackelement_p_p.h.

Referenced by ~QQuickStackElement(), fromObject(), and fromStackViewArg().

◆ ownComponent

bool QQuickStackElement::ownComponent = false

Definition at line 72 of file qquickstackelement_p_p.h.

Referenced by ~QQuickStackElement(), fromStackViewArg(), and fromString().

◆ ownItem

bool QQuickStackElement::ownItem = false

Definition at line 71 of file qquickstackelement_p_p.h.

Referenced by ~QQuickStackElement(), and load().

◆ properties

QV4::PersistentValue QQuickStackElement::properties

◆ qmlCallingContext

QV4::PersistentValue QQuickStackElement::qmlCallingContext

◆ removal

bool QQuickStackElement::removal = false

◆ status

◆ view

◆ widthValid

bool QQuickStackElement::widthValid = false

The documentation for this class was generated from the following files: