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
qquickpage_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 QQUICKPAGE_P_H
6#define QQUICKPAGE_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/qquickpane_p.h>
20#include <QtQml/qqmllist.h>
21
23
25
26class Q_QUICKTEMPLATES2_EXPORT QQuickPage : public QQuickPane
27{
28 Q_OBJECT
29 Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged RESET resetTitle FINAL)
30 Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
31 Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
32 // 2.5 (Qt 5.12)
33 Q_PROPERTY(qreal implicitHeaderWidth READ implicitHeaderWidth NOTIFY implicitHeaderWidthChanged FINAL REVISION(2, 5))
34 Q_PROPERTY(qreal implicitHeaderHeight READ implicitHeaderHeight NOTIFY implicitHeaderHeightChanged FINAL REVISION(2, 5))
35 Q_PROPERTY(qreal implicitFooterWidth READ implicitFooterWidth NOTIFY implicitFooterWidthChanged FINAL REVISION(2, 5))
36 Q_PROPERTY(qreal implicitFooterHeight READ implicitFooterHeight NOTIFY implicitFooterHeightChanged FINAL REVISION(2, 5))
37 QML_NAMED_ELEMENT(Page)
38 QML_ADDED_IN_VERSION(2, 0)
39
40public:
41 explicit QQuickPage(QQuickItem *parent = nullptr);
42 ~QQuickPage();
43
44 QString title() const;
45 void setTitle(const QString &title);
46 void resetTitle();
47
48 QQuickItem *header() const;
49 void setHeader(QQuickItem *header);
50
51 QQuickItem *footer() const;
52 void setFooter(QQuickItem *footer);
53
54 // 2.5 (Qt 5.12)
55 qreal implicitHeaderWidth() const;
56 qreal implicitHeaderHeight() const;
57
58 qreal implicitFooterWidth() const;
59 qreal implicitFooterHeight() const;
60
61Q_SIGNALS:
62 void titleChanged();
63 void headerChanged();
64 void footerChanged();
65 // 2.5 (Qt 5.12)
66 void implicitHeaderWidthChanged();
67 void implicitHeaderHeightChanged();
68 void implicitFooterWidthChanged();
69 void implicitFooterHeightChanged();
70
71protected:
72 QQuickPage(QQuickPagePrivate &dd, QQuickItem *parent);
73
74 void componentComplete() override;
75
76 void spacingChange(qreal newSpacing, qreal oldSpacing) override;
77
78#if QT_CONFIG(accessibility)
79 QAccessible::Role accessibleRole() const override;
80 void accessibilityActiveChanged(bool active) override;
81#endif
82
83private:
84 Q_DISABLE_COPY(QQuickPage)
85 Q_DECLARE_PRIVATE(QQuickPage)
86};
87
88QT_END_NAMESPACE
89
90#endif // QQUICKPAGE_P_H
QAccessibleQuickPage(QQuickPage *page)
int indexOfChild(const QAccessibleInterface *iface) const override
QAccessibleInterface * child(int index) const override