Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlcomponentattached_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 QQMLCOMPONENTATTACHED_P_H
5#define QQMLCOMPONENTATTACHED_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 <QtQml/qqml.h>
19#include <QtQml/qqmlcomponent.h>
20#include <private/qtqmlglobal_p.h>
21#include <QtCore/QObject>
22
24
25
26// implemented in qqmlcomponent.cpp
27class Q_QML_EXPORT QQmlComponentAttached : public QObject
28{
29 Q_OBJECT
30public:
31 QQmlComponentAttached(QObject *parent = nullptr);
32 ~QQmlComponentAttached();
33
34 void insertIntoList(QQmlComponentAttached **listHead)
35 {
36 m_prev = listHead;
37 m_next = *listHead;
38 *listHead = this;
39 if (m_next)
40 m_next->m_prev = &m_next;
41 }
42
43 void removeFromList()
44 {
45 *m_prev = m_next;
46 if (m_next)
47 m_next->m_prev = m_prev;
48 m_next = nullptr;
49 m_prev = nullptr;
50 }
51
52 QQmlComponentAttached *next() const { return m_next; }
53
54Q_SIGNALS:
55 void completed();
56 void destruction();
57
58private:
59 QQmlComponentAttached **m_prev;
60 QQmlComponentAttached *m_next;
61};
62
63QT_END_NAMESPACE
64
65// TODO: We still need this because we cannot properly use QML_ATTACHED with QML_FOREIGN.
66QML_DECLARE_TYPEINFO(QQmlComponent, QML_HAS_ATTACHED_PROPERTIES)
67
68#endif // QQMLCOMPONENTATTACHED_P_H
\inmodule QtCore
Definition qobject.h:105
void setInitialState(QObject *o) override
Called after the object is first created, but before complex property bindings are evaluated and,...
void statusChanged(Status s) override
Called when the status of the incubator changes.
QQmlComponentIncubator(QV4::Heap::QmlIncubatorObject *inc, IncubationMode mode)
QV4::PersistentValue incubatorObject
The QQmlComponent class encapsulates a QML component definition.
The QQmlError class encapsulates a QML error.
Definition qqmlerror.h:18
Status
Specifies the status of the QQmlIncubator.
Combined button and popup list for selecting options.
DECLARE_HEAP_OBJECT(QmlContext, ExecutionContext)
Definition qjsvalue.h:23
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
static void removePendingQPropertyBinding(QV4::Value *object, const QString &propertyName, const QQmlObjectCreator *creator)
static void QQmlComponent_setQmlParent(QObject *me, QObject *parent)
DEFINE_OBJECT_VTABLE(QV4::QmlIncubatorObject)
V4_DEFINE_EXTENSION(QQmlComponentExtension, componentExtension)
static QQmlParserStatus * parserStatusCast(const QQmlType &type, QObject *rv)
QDebug Q_QML_EXPORT operator<<(QDebug debug, const QQmlError &error)
double d
[1]
static ReturnedValue method_set_statusChanged(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_status(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_get_object(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void statusChanged(QQmlIncubator::Status)
void setInitialState(QObject *, RequiredProperties *requiredProperties)
static ReturnedValue method_forceCompletion(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)