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