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
qquickloader_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKLOADER_P_P_H
5#define QQUICKLOADER_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qquickloader_p.h"
21#include <qqmlincubator.h>
22
23#include <private/qv4staticvalue_p.h>
24#include <private/qv4persistent_p.h>
25
27
28
31{
32public:
34
35protected:
36 void statusChanged(Status) override;
37 void setInitialState(QObject *) override;
38
39private:
40 QQuickLoaderPrivate *loader;
41};
42
43class QQmlContext;
45{
46 Q_DECLARE_PUBLIC(QQuickLoader)
47
48public:
51
52 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override;
53 void itemImplicitWidthChanged(QQuickItem *) override;
55 void clear();
56 void initResize();
57 void load();
58
63 void updateStatus();
64 void createComponent();
65
66 qreal getImplicitWidth() const override;
67 qreal getImplicitHeight() const override;
68
72 QQmlStrongJSQObjectReference<QQmlComponent> component;
77 bool updatingSize: 1;
78 bool active : 1;
80 bool asynchronous : 1;
81 // We need to use char instead of QQuickLoader::Status
82 // as otherwise the size of the class would increase
83 // on 32-bit systems, as sizeof(Status) == sizeof(int)
84 // and sizeof(int) > remaining padding on 32 bit
85 char status;
86
87 void _q_sourceLoaded();
88 void _q_updateSize(bool loaderGeometryChanged = true);
89};
90
92
93#endif // QQUICKLOADER_P_P_H
\inmodule QtCore
Definition qobject.h:103
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
The QQmlIncubator class allows QML objects to be created asynchronously.
IncubationMode
Specifies the mode the incubator operates in.
Status
Specifies the status of the QQmlIncubator.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
QQuickLoaderIncubator(QQuickLoaderPrivate *l, IncubationMode mode)
void setInitialState(QObject *) override
Called after the object is first created, but before complex property bindings are evaluated and,...
void statusChanged(Status) override
Called when the status of the incubator changes.
QQmlStrongJSQObjectReference< QQmlComponent > component
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override
void disposeInitialPropertyValues()
void itemImplicitWidthChanged(QQuickItem *) override
QV4::PersistentValue qmlCallingContext
qreal getImplicitWidth() const override
QQuickLoader::Status computeStatus() const
QV4::PersistentValue initialPropertyValues
QQmlContext * itemContext
void setInitialState(QObject *o)
QQuickLoaderIncubator * incubator
void _q_updateSize(bool loaderGeometryChanged=true)
void itemImplicitHeightChanged(QQuickItem *) override
void incubatorStateChanged(QQmlIncubator::Status status)
qreal getImplicitHeight() const override
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
GLenum mode
double qreal
Definition qtypes.h:187