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
qquickstackview_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
4#ifndef QQUICKSTACKVIEW_P_P_H
5#define QQUICKSTACKVIEW_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 <QtQuickTemplates2/private/qquickstackview_p.h>
19#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
20#if QT_CONFIG(quick_viewtransitions)
21#include <QtQuick/private/qquickitemviewtransition_p.h>
22#endif
23#include <QtQuick/private/qquickitemchangelistener_p.h>
24#include <QtQml/private/qv4value_p.h>
25#include <QtQml/private/qqmlcontextdata_p.h>
26#include <QtCore/qset.h>
27#include <QtCore/qstack.h>
28
30
33
35#if QT_CONFIG(quick_viewtransitions)
37#endif
38{
39 Q_DECLARE_PUBLIC(QQuickStackView)
40
41public:
43 {
44 return view->d_func();
45 }
46
47 void warn(const QString &error);
48 void warnOfInterruption(const QString &attemptedOperation);
49
51
52 QList<QQuickStackElement *> parseElements(int from, QQmlV4FunctionPtr args, QStringList *errors);
53 QList<QQuickStackElement *> parseElements(const QList<QQuickStackViewArg> &args);
56 QQuickStackElement *createElement(const QV4::Value &value, const QQmlRefPointer<QQmlContextData> &context, QString *error);
57 bool pushElements(const QList<QQuickStackElement *> &elements);
58 bool pushElement(QQuickStackElement *element);
59 bool popElements(QQuickStackElement *element);
60 bool replaceElements(QQuickStackElement *element, const QList<QQuickStackElement *> &elements);
61
62 enum class CurrentItemPolicy {
64 Pop
65 };
67
68#if QT_CONFIG(quick_viewtransitions)
69 void ensureTransitioner();
70 void startTransition(const QQuickStackTransition &first, const QQuickStackTransition &second, bool immediate);
71 void completeTransition(QQuickStackElement *element, QQuickTransition *transition, QQuickStackView::Status status);
72
73 void viewItemTransitionFinished(QQuickItemViewTransitionableItem *item) override;
74#endif
75 void setBusy(bool busy);
76 void depthChange(int newDepth, int oldDepth);
77
78 bool busy = false;
79 bool modifyingElements = false;
83 QSet<QQuickStackElement*> removing;
84 QList<QQuickStackElement*> removed;
85 QStack<QQuickStackElement *> elements;
86#if QT_CONFIG(quick_viewtransitions)
87 QQuickItemViewTransitioner *transitioner = nullptr;
88#endif
89};
90
92//#if QT_CONFIG(quick_viewtransitions)
94//#endif
95{
96 Q_DECLARE_PUBLIC(QQuickStackViewAttached)
97
98public:
100 {
101 return attached->d_func();
102 }
103
104//#if QT_CONFIG(quick_viewtransitions)
106//#endif
107
108 bool explicitVisible = false;
110};
111
113
114#endif // QQUICKSTACKVIEW_P_P_H
The QJSValue class acts as a container for Qt/JavaScript data types.
Definition qjsvalue.h:31
QObject * parent
Definition qobject.h:73
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
void itemParentChanged(QQuickItem *item, QQuickItem *parent) override
static QQuickStackViewAttachedPrivate * get(QQuickStackViewAttached *attached)
void warnOfInterruption(const QString &attemptedOperation)
bool pushElements(const QList< QQuickStackElement * > &elements)
bool replaceElements(QQuickStackElement *element, const QList< QQuickStackElement * > &elements)
QList< QQuickStackElement * > parseElements(int from, QQmlV4FunctionPtr args, QStringList *errors)
static QQuickStackViewPrivate * get(QQuickStackView *view)
QList< QQuickStackElement * > removed
QQuickStackElement * createElement(const QV4::Value &value, const QQmlRefPointer< QQmlContextData > &context, QString *error)
void warn(const QString &error)
void setCurrentItem(QQuickStackElement *element)
bool popElements(QQuickStackElement *element)
QStack< QQuickStackElement * > elements
QQuickStackElement * findElement(QQuickItem *item) const
void depthChange(int newDepth, int oldDepth)
QSet< QQuickStackElement * > removing
QQuickItem * popToItem(QQuickItem *item, QQuickStackView::Operation operation, CurrentItemPolicy currentItemPolicy)
bool pushElement(QQuickStackElement *element)
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
static void * context
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint first
QGraphicsItem * item
QQuickView * view
[0]
QJSValueList args