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 QQUICKPANE_P_P_H
5#define QQUICKPANE_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/qquickcontrol_p_p.h>
19
20QT_BEGIN_NAMESPACE
21
22class QQuickPane;
23
24class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPanePrivate : public QQuickControlPrivate
25{
26public:
27 Q_DECLARE_PUBLIC(QQuickPane)
28
29 void init();
30
31 virtual QQmlListProperty<QObject> contentData();
32 virtual QQmlListProperty<QQuickItem> contentChildren();
33 virtual QList<QQuickItem *> contentChildItems() const;
34
35 QQuickItem *getContentItem() override;
36
37 qreal getContentWidth() const override;
38 qreal getContentHeight() const override;
39
40 void itemImplicitWidthChanged(QQuickItem *item) override;
41 void itemImplicitHeightChanged(QQuickItem *item) override;
42
43 void contentChildrenChange();
44
45 void updateContentWidth();
46 void updateContentHeight();
47
48 bool handlePress(const QPointF &point, ulong timestamp) override;
49
50 bool hasContentWidth = false;
51 bool hasContentHeight = false;
52 qreal contentWidth = 0;
53 qreal contentHeight = 0;
54 QQuickItem *firstChild = nullptr;
55};
56
57QT_END_NAMESPACE
58
59#endif // QQUICKPANE_P_P_H
60

source code of qtdeclarative/src/quicktemplates/qquickpane_p_p.h