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
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_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 virtual QQuickItem *getFirstChild() const;
35
36 QQuickItem *getContentItem() override;
37
38 qreal getContentWidth() const override;
39 qreal getContentHeight() const override;
40
41 void itemImplicitWidthChanged(QQuickItem *item) override;
42 void itemImplicitHeightChanged(QQuickItem *item) override;
43 void itemDestroyed(QQuickItem *item) override;
44
45 void contentChildrenChange();
46
47 void updateContentWidth();
48 void updateContentHeight();
49
50 bool handlePress(const QPointF &point, ulong timestamp) override;
51
52 bool hasContentWidth = false;
53 bool hasContentHeight = false;
54 qreal contentWidth = 0;
55 qreal contentHeight = 0;
56 QQuickItem *firstChild = nullptr;
57};
58
60
61#endif // QQUICKPANE_P_P_H
\inmodule QtCore\reentrant
Definition qpoint.h:217
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
unsigned long ulong
Definition qtypes.h:35
double qreal
Definition qtypes.h:187
QGraphicsItem * item