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
qquickstackelement_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKSTACKELEMENT_P_P_H
6#define QQUICKSTACKELEMENT_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuickTemplates2/private/qquickstackview_p.h>
20#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
21#if QT_CONFIG(quick_viewtransitions)
22#include <QtQuick/private/qquickitemviewtransition_p.h>
23#endif
24#include <QtQuick/private/qquickitemchangelistener_p.h>
25#include <QtQml/private/qv4persistent_p.h>
26
27#include <QtCore/qpointer.h>
28
29QT_BEGIN_NAMESPACE
30
31class QQmlContext;
32class QQmlComponent;
35
37#if QT_CONFIG(quick_viewtransitions)
39#endif
41{
42 QQuickStackElement();
43
44public:
46
47 static QQuickStackElement *fromString(QQmlEngine *engine, const QString &str, QQuickStackView *view, QString *error);
48 static QQuickStackElement *fromObject(QObject *object, QQuickStackView *view, QString *error);
49 static QQuickStackElement *fromStackViewArg(QQmlEngine *engine, QQuickStackView *view, QQuickStackViewArg arg);
50
51 bool load(QV4::ExecutionEngine *v4, QQuickStackView *parent);
52 void incubate(
53 QV4::ExecutionEngine *v4, QObject *object, RequiredProperties *requiredProperties);
54 void initialize(QV4::ExecutionEngine *v4, RequiredProperties *requiredProperties);
55
56 void setIndex(int index);
57 void setView(QQuickStackView *view);
58 void setStatus(QQuickStackView::Status status);
59 void setVisible(bool visible);
60
61#if QT_CONFIG(quick_viewtransitions)
66#endif
67
68 void itemDestroyed(QQuickItem *item) override;
69
70 int index = -1;
71 bool init = false;
72 bool removal = false;
73 bool ownItem = false;
74 bool ownComponent = false;
75 bool widthValid = false;
76 bool heightValid = false;
77 QQmlComponent *component = nullptr;
83#if !QT_CONFIG(quick_viewtransitions)
85#endif
86};
87
88QT_END_NAMESPACE
89
90#endif // QQUICKSTACKELEMENT_P_P_H
void itemDestroyed(QQuickItem *item) override
static QQuickStackElement * fromStackViewArg(QQmlEngine *engine, QQuickStackView *view, QQuickStackViewArg arg)
QPointer< QQuickItem > originalParent
void initialize(QV4::ExecutionEngine *v4, RequiredProperties *requiredProperties)
void setVisible(bool visible)
static QQuickStackElement * fromString(QQmlEngine *engine, const QString &str, QQuickStackView *view, QString *error)
bool load(QV4::ExecutionEngine *v4, QQuickStackView *parent)
static QQuickStackElement * fromObject(QObject *object, QQuickStackView *view, QString *error)
void setStatus(QQuickStackView::Status status)
QV4::PersistentValue properties
void incubate(QV4::ExecutionEngine *v4, QObject *object, RequiredProperties *requiredProperties)
QQuickStackView::Status status
void setView(QQuickStackView *view)
QV4::PersistentValue qmlCallingContext
QQuickStackIncubator(QQuickStackElement *element)
void setInitialState(QObject *object) override
Called after the object is first created, but before complex property bindings are evaluated and,...