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.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_H
5#define QQUICKPANE_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.h>
19#include <QtQml/qqmllist.h>
20
22
24
25class Q_QUICKTEMPLATES2_EXPORT QQuickPane : public QQuickControl
26{
28 Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
29 Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
30 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
31 Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
32 Q_CLASSINFO("DefaultProperty", "contentData")
35
36public:
37 explicit QQuickPane(QQuickItem *parent = nullptr);
38 ~QQuickPane();
39
40 qreal contentWidth() const;
41 void setContentWidth(qreal width);
42 void resetContentWidth();
43
44 qreal contentHeight() const;
45 void setContentHeight(qreal height);
46 void resetContentHeight();
47
49 void contentWidthChanged();
50 void contentHeightChanged();
51 void contentChildrenChanged();
52
53protected:
55
56 void componentComplete() override;
57
58 void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
59 virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize);
60
61#if QT_CONFIG(accessibility)
62 QAccessible::Role accessibleRole() const override;
63#endif
64
65private:
66 Q_DISABLE_COPY(QQuickPane)
67 Q_DECLARE_PRIVATE(QQuickPane)
68};
69
71
72#endif // QQUICKPANE_P_H
\inmodule QtCore
Definition qobject.h:103
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\inmodule QtCore
Definition qsize.h:208
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei width
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_CLASSINFO(name, value)
#define Q_SIGNALS
#define Q_PRIVATE_PROPERTY(d, text)
double qreal
Definition qtypes.h:187
#define explicit