Qt 6.x
The Qt SDK
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
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
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
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
58
59#endif // QQUICKPANE_P_P_H
Definition qlist.h:74
\inmodule QtCore\reentrant
Definition qpoint.h:214
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
void itemImplicitWidthChanged(QQuickItem *item) override
virtual bool handlePress(const QPointF &point, ulong timestamp)
virtual QQuickItem * getContentItem()
virtual qreal getContentWidth() const
virtual qreal getContentHeight() const
void itemImplicitHeightChanged(QQuickItem *item) override
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
Combined button and popup list for selecting options.
unsigned long ulong
Definition qtypes.h:30
double qreal
Definition qtypes.h:92
QGraphicsItem * item